Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
creativeprojects committed Jun 16, 2024
1 parent 1d62feb commit 45a3c44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Config struct {
Arch string
// Arm 32bits version. Valid values are 0 (unknown), 5, 6 or 7. Default is detected value (if available).
Arm uint8
// Arch name to use when using a universal binary (macOS only). Default to none.
// Arch name for macOS universal binary. Default to none.
UniversalArch string
// Draft permits an upgrade to a "draft" version (default to false).
Draft bool
Expand Down
4 changes: 2 additions & 2 deletions update/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ func Apply(update io.Reader, opts Options) error {

// verify checksum if requested
if opts.Checksum != nil {
if err := opts.verifyChecksum(newBytes); err != nil {
if err = opts.verifyChecksum(newBytes); err != nil {
return err
}
}

if verify {
if err := opts.verifySignature(newBytes); err != nil {
if err = opts.verifySignature(newBytes); err != nil {
return err
}
}
Expand Down

0 comments on commit 45a3c44

Please sign in to comment.