Skip to content

Commit

Permalink
fix: rename func
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Aug 24, 2024
1 parent ca7a34d commit adcd68a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ func get(fieldParams FieldParams, opts Options) (val string, err error) {
}

if fieldParams.Required && !exists && len(fieldParams.OwnKey) > 0 {
return "", newVarIsNotSet(fieldParams.Key)
return "", newVarIsNotSetError(fieldParams.Key)
}

if fieldParams.NotEmpty && val == "" {
Expand Down
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ type VarIsNotSetError struct {
Key string
}

func newVarIsNotSet(key string) error {
func newVarIsNotSetError(key string) error {
return VarIsNotSetError{key}
}

Expand Down

0 comments on commit adcd68a

Please sign in to comment.