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
// final byte which is '\n'
ret = append(ret, line[:len(line)-1]...)
// Add current line to return slice
ret = append(ret, line...)
}
// Return!

Loading…
Cancel
Save