fix broken file reading

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
master
kim (grufwub) 4 years ago
parent 529d28e62e
commit 65aaa99a0a

@ -122,9 +122,8 @@ func (fs *FileSystemObject) ReadFile(fd *os.File) ([]byte, Error) {
} }
} }
// Add current line to return slice, skip // Add current line to return slice
// final byte which is '\n' ret = append(ret, line...)
ret = append(ret, line[:len(line)-1]...)
} }
// Return! // Return!

Loading…
Cancel
Save