Skip to content

Commit

Permalink
Clean up messaging a little on update available check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Murray committed Jul 6, 2018
1 parent 19a6924 commit 9328ec2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions util/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ func CheckForRigUpdate(curRigVersion string) string {
curVer, verr := version.NewVersion(curRigVersion)
if tag, err := currentRigReleaseTag(); err == nil {
if tagVer, verr2 := version.NewVersion(tag); verr2 == nil {
// Show the message if we're on master or there's an update.
if verr != nil || tagVer.Compare(curVer) > 0 {
return "An update for rig is available: " + tag
}
}
} else {
// Local dev, this always appears, since version get set by the build.
Logger().Verbose("Can't parse released tag version: " + err.Error())
}
return ""
}
Expand Down

0 comments on commit 9328ec2

Please sign in to comment.