Skip to content

Commit

Permalink
Fix Json output name when none is set (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyvanderaerden authored Jan 26, 2025
1 parent d11bdc2 commit 9bc1a79
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/excoveralls/json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ defmodule ExCoveralls.Json do
end

defp output_name(name) do
case name do
nil -> @file_name
name -> "#{name}.json"
if name do
"#{name}.json"
else
@file_name
end
end

Expand Down

0 comments on commit 9bc1a79

Please sign in to comment.