Skip to content

Commit

Permalink
acme: avoid crash when w.fid fails (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogpeppe authored Nov 2, 2021
1 parent d5b2d30 commit 576d46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme/acme.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ func (w *Win) fid(name string) (*client.Fid, error) {
// ReadAll
func (w *Win) ReadAll(file string) ([]byte, error) {
f, err := w.fid(file)
f.Seek(0, 0)
if err != nil {
return nil, err
}
f.Seek(0, 0)
return ioutil.ReadAll(f)
}

Expand Down

0 comments on commit 576d46f

Please sign in to comment.