mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fix a go vet
issue re: missing arg to fmt.Sprintf
.
This commit is contained in:
parent
6df42d4348
commit
dfb86a8983
@ -72,7 +72,7 @@ func validateDurationMinFactory(name, minDuration string) func(v interface{}, ke
|
||||
return func(v interface{}, key string) (warnings []string, errors []error) {
|
||||
d, err := time.ParseDuration(v.(string))
|
||||
if err != nil {
|
||||
errors = append(errors, errwrap.Wrapf(fmt.Sprintf("Invalid %s specified (%q): {{err}}", name), err))
|
||||
errors = append(errors, errwrap.Wrapf(fmt.Sprintf("Invalid %s specified (%q): {{err}}", name, v.(string)), err))
|
||||
}
|
||||
|
||||
if d < dMin {
|
||||
|
Loading…
Reference in New Issue
Block a user