Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit 14dde87

Browse files
committed
Refactored code as suggested in #9 (comment)
Signed-off-by: Thomas Bocek <[email protected]>
1 parent d60a978 commit 14dde87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

godotenv.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,8 @@ func expandVariables(v string, envMap map[string]string, lookupFn LookupFn) stri
353353
s2, ok := lookupFn(submatch[4])
354354
if ok {
355355
return s2
356-
} else {
357-
return ""
358356
}
357+
return ""
359358
}
360359
return s
361360
})

0 commit comments

Comments
 (0)