Skip to content

Commit e347028

Browse files
committed
Do not output empty values
1 parent 673adcf commit e347028

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/app_bootstrap.ex

+3-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ defmodule AppBootstrap do
115115

116116
@spec format_dotenv(map) :: String.t
117117
defp format_dotenv(dotenv) do
118-
Enum.reduce(dotenv, "", fn ({key, value}, string) ->
119-
"#{string}#{key}=#{value}\n"
118+
Enum.reduce(dotenv, "", fn
119+
({_, ""}, string) -> string
120+
({key, value}, string) -> "#{string}#{key}=#{value}\n"
120121
end)
121122
end
122123
end

0 commit comments

Comments
 (0)