Skip to content

Commit

Permalink
Use fmt.Sprintf instead of .String()
Browse files Browse the repository at this point in the history
  • Loading branch information
exavolt committed Feb 23, 2024
1 parent cc63608 commit 33e0d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stev.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func (l Loader) loadFromEnv(
if fVal.IsNil() {
defVal = ""
} else {
defVal = fVal.Elem().String()
defVal = fmt.Sprintf("%v", fVal.Elem())
}
} else if !fVal.IsZero() {
defVal = fmt.Sprintf("%v", fVal.Interface())
Expand Down

0 comments on commit 33e0d46

Please sign in to comment.