Skip to content

Commit

Permalink
return sscanf error
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Oct 14, 2021
1 parent eee44f8 commit 49a6d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func checkUpdate(clientVersion, serverVersion string) error {

_, err = fmt.Sscanf(latestSemVer, "v%s", &latestVersion)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
return err
}

if clientSemVer != "v0.0.0-development" && semver.Compare(latestSemVer, clientSemVer) > 0 {
Expand Down

0 comments on commit 49a6d5a

Please sign in to comment.