Skip to content

Commit 4d37ac4

Browse files
authored
fixing contract (#17)
1 parent 472ec89 commit 4d37ac4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

storage_plaintext.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ func (storage PlaintextStorage) ReadFileFully(path string) ([]byte, error) {
8181
return nil, err
8282
}
8383
buf := make([]byte, fs.Size)
84-
_, err = syscall.Read(fd, buf)
85-
if err != nil && err != io.EOF {
84+
if _, err = syscall.Read(fd, buf); err != nil && err != io.EOF {
8685
return nil, err
8786
}
8887
return buf, nil

0 commit comments

Comments
 (0)