Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
romanchechyotkin committed Dec 26, 2024
1 parent f4dd5e4 commit 19554ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added .bin/golangci/golangci-lint
Binary file not shown.
2 changes: 1 addition & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func findClosestCommands(commandsTree *trie.Trie, command string) []string {
// Check for updates and print a notification message
func checkUpdate(ctx *cli.Context) {
// Do not print update messages, if quiet flag is set.
if ctx.Bool("quiet") || ctx.GlobalBool("quiet") {
if !ctx.Bool("quiet") || !ctx.GlobalBool("quiet") {
// Its OK to ignore any errors during doUpdate() here.
if updateMsg, _, currentReleaseTime, latestReleaseTime, _, err := getUpdateInfo("", 2*time.Second); err == nil {
printMsg(updateMessage{
Expand Down

0 comments on commit 19554ec

Please sign in to comment.