Skip to content

Commit 000c9fe

Browse files
tm-sanjayaead
authored andcommitted
err already used, update undeclared
1 parent 68d619f commit 000c9fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func doUpdate(url string) error {
2727
return err
2828
}
2929
defer resp.Body.Close()
30-
err := selfupdate.Apply(resp.Body, update.Options{})
30+
err = selfupdate.Apply(resp.Body, selfupdate.Options{})
3131
if err != nil {
3232
// error handling
3333
}

0 commit comments

Comments
 (0)