Skip to content

Commit

Permalink
fix: golangci-lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed Sep 8, 2024
1 parent 9ff7990 commit f23c075
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion help.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ func helpPrinter(_ kong.HelpOptions, ctx *kong.Context) error {
switch f.Name {
case "version", "interactive":
printFlag(f)
break
}
}

Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ func main() {
printErrorFatal("Invalid Usage", err)
}

//nolint: nestif
if config.Version {
if Version == "" {
Version = "latest (built from source)"
if info, ok := debug.ReadBuildInfo(); ok && (info.Main.Version != "" && info.Main.Version != "(devel)") {
Version = info.Main.Version
Version = info.Main.Version
}
}
version := fmt.Sprintf("freeze version: %s", Version)
Expand Down

0 comments on commit f23c075

Please sign in to comment.