Skip to content

Commit 9bc1a79

Browse files
Fix Json output name when none is set (#337)
1 parent d11bdc2 commit 9bc1a79

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/excoveralls/json.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ defmodule ExCoveralls.Json do
3535
end
3636

3737
defp output_name(name) do
38-
case name do
39-
nil -> @file_name
40-
name -> "#{name}.json"
38+
if name do
39+
"#{name}.json"
40+
else
41+
@file_name
4142
end
4243
end
4344

0 commit comments

Comments
 (0)