From f4843db6711f5a61b9f9ea0016bd1e49d82d3e4e Mon Sep 17 00:00:00 2001 From: quzard <1191890118@qq.com> Date: Wed, 15 Jan 2025 01:41:32 +0000 Subject: [PATCH] make lint --- pkg/flags/flags.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/flags/flags.go b/pkg/flags/flags.go index 962dcb3a6e..bb5e5bf9b7 100644 --- a/pkg/flags/flags.go +++ b/pkg/flags/flags.go @@ -153,11 +153,11 @@ func lookupFlag(name string) (*flag.Flag, error) { // GetStringFlag returns the string value of the named flag func GetStringFlag(name string) (string, error) { - if f, err := lookupFlag(name); err != nil { + f, err := lookupFlag(name) + if err != nil { return "", err - } else { - return f.Value.String(), nil } + return f.Value.String(), nil } // GetBoolFlag returns the bool value of the named flag