Skip to content

Commit

Permalink
fixing contract (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jancajthaml authored May 17, 2020
1 parent 472ec89 commit 4d37ac4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions storage_plaintext.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ func (storage PlaintextStorage) ReadFileFully(path string) ([]byte, error) {
return nil, err
}
buf := make([]byte, fs.Size)
_, err = syscall.Read(fd, buf)
if err != nil && err != io.EOF {
if _, err = syscall.Read(fd, buf); err != nil && err != io.EOF {
return nil, err
}
return buf, nil
Expand Down

0 comments on commit 4d37ac4

Please sign in to comment.