Skip to content

Commit

Permalink
Show "No coverage directory found." instead of "implicit conversion o…
Browse files Browse the repository at this point in the history
…f nil into String" SlatherOrg#341
  • Loading branch information
phimage authored Apr 10, 2018
1 parent 036f147 commit 2ebb914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slather/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def profdata_coverage_dir
coverage_files = Dir[File.join(build_directory, "../**/ProfileData/*/Coverage.profdata")]
end

if coverage_files != nil
if coverage_files != nil && coverage_files.count != 0
dir = Pathname.new(coverage_files.first).parent()
end
end
Expand Down

0 comments on commit 2ebb914

Please sign in to comment.