Skip to content

Commit

Permalink
cmd/oci-runtime-tool: fix govet warning
Browse files Browse the repository at this point in the history
Found by golangci-lint v1.60.1:

cmd/oci-runtime-tool/main.go:59:17: printf: non-constant format string in call to github.com/sirupsen/logrus.Fatalf (govet)
		logrus.Fatalf(err.Error())
		              ^
  • Loading branch information
kolyshkin committed Aug 15, 2024
1 parent 408c51e commit d4cfd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oci-runtime-tool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func before(context *cli.Context) error {
logLevelString := context.GlobalString("log-level")
logLevel, err := logrus.ParseLevel(logLevelString)
if err != nil {
logrus.Fatalf(err.Error())
logrus.Fatal(err)
}
logrus.SetLevel(logLevel)

Expand Down

0 comments on commit d4cfd13

Please sign in to comment.