refactor: return directly
This commit is contained in:
1 parent
96ca1afb9b
commit
536f6f52ff
1 file changed
+1
-2
@@ -14,8 +14,7 @@ func init() {
|
||||
|
||||
func ParseInput(filepath string) []string {
|
||||
content, _ := os.ReadFile(filepath)
|
||||
lines := strings.Split(strings.TrimRight(string(content), "\n"), "\n")
|
||||
return lines
|
||||
return strings.Split(strings.TrimRight(string(content), "\n"), "\n")
|
||||
}
|
||||
|
||||
func transpose(lines []string) []string {
|
||||
|
||||
Reference in new issue
Block a user