Skip to content

Commit

Permalink
fix(cov): use exist (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Jul 19, 2023
1 parent fb6c769 commit ad8a4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quality/go/cov
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

file = '.go.cov'
exclude = File.exists?(file) ? File.read(file).split.join('|') : '.pb|main.go'
exclude = File.exist?(file) ? File.read(file).split.join('|') : '.pb|main.go'

Dir['test/reports/*.cov'].each do |f|
nf = "#{File.dirname(f)}/#{File.basename(f, File.extname(f))}-new#{File.extname(f)}"
Expand Down

0 comments on commit ad8a4c8

Please sign in to comment.