Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gacevicljubisa committed Dec 21, 2023
1 parent 020be07 commit 55c8fdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const (

func main() {
cfg := funder.Config{}

var logLevel string

rootCmd := &cobra.Command{
Expand Down Expand Up @@ -110,6 +111,7 @@ func doStake(cfg funder.Config, logger logging.Logger) {

func newLogger(cmd *cobra.Command, verbosity string) (logging.Logger, error) {
var logger logging.Logger

switch strings.ToLower(verbosity) {
case "0", "silent":
logger = logging.New(io.Discard, 0)
Expand All @@ -126,5 +128,6 @@ func newLogger(cmd *cobra.Command, verbosity string) (logging.Logger, error) {
default:
return nil, fmt.Errorf("unknown %s level %q, use help to check flag usage options", optionLogVerbosity, verbosity)
}

return logger, nil
}

0 comments on commit 55c8fdb

Please sign in to comment.