Skip to content

Commit

Permalink
Simplified if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanHabic committed Nov 8, 2018
1 parent c6e0ec3 commit 322c454
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions versionCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ func MaybeCheckVersion() {
var result []tagResults
err = json.Unmarshal(contents, &result)

if err != nil {
return
}

if len(result) == 0 {
if err != nil || len(result) == 0 {
return
}

Expand Down

0 comments on commit 322c454

Please sign in to comment.