Skip to content

Commit

Permalink
fixed bug in MustGet
Browse files Browse the repository at this point in the history
  • Loading branch information
rayjlinden committed Apr 4, 2019
1 parent c104dc9 commit 9c053be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func GetOr(key, defaultValue string) string {
}

// MustGet - get an environment variable or panic if does not exist
func MustGet(key, defaultValue string) string {
func MustGet(key) string {
value, ok := os.LookupEnv(key)
if ok {
return value
Expand Down

0 comments on commit 9c053be

Please sign in to comment.