Skip to content

Commit

Permalink
Remove fmt (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
heartwilltell authored Jul 25, 2024
1 parent 225ffb9 commit e053b8b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions flagset.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package scotty

import (
"flag"
"fmt"
"os"
"strconv"
"time"
Expand Down Expand Up @@ -80,7 +79,6 @@ func (f *FlagSet) Uint64VarE(p *uint64, flagName, envName string, value uint64,
// If the value of environment variable can't be parsed to destination type the default value will be used.
func (f *FlagSet) DurationVarE(p *time.Duration, flagName, envName string, value time.Duration, usage string) {
parsed, err := time.ParseDuration(os.Getenv(envName))
fmt.Println(parsed, err, tern[time.Duration](err == nil, parsed, value))
f.FlagSet.DurationVar(p, flagName, tern[time.Duration](err == nil, parsed, value), usage)
}

Expand Down

0 comments on commit e053b8b

Please sign in to comment.