Skip to content

Commit

Permalink
add untested warning for unsupported types
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Nov 4, 2023
1 parent df56182 commit 0aa57bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ func SetFromEnv(prefix string, s interface{}) {
case reflect.Bool:
setBool(fieldValue, envVal)
default:
log.Warnf("Unsupported type %v to set from %s=%q", kind, envName, envVal)

Check warning on line 309 in env/env.go

View check run for this annotation

Codecov / codecov/patch

env/env.go#L308-L309

Added lines #L308 - L309 were not covered by tests
}
}
}

0 comments on commit 0aa57bd

Please sign in to comment.