diff --git a/core/filesystem.go b/core/filesystem.go index 62158f5..9804def 100644 --- a/core/filesystem.go +++ b/core/filesystem.go @@ -122,9 +122,8 @@ func (fs *FileSystemObject) ReadFile(fd *os.File) ([]byte, Error) { } } - // Add current line to return slice, skip - // final byte which is '\n' - ret = append(ret, line[:len(line)-1]...) + // Add current line to return slice + ret = append(ret, line...) } // Return!