Skip to content

Commit

Permalink
Fix single source file in binary predicate
Browse files Browse the repository at this point in the history
Fixing #376 issue.
  • Loading branch information
blackm00n committed Apr 3, 2018
1 parent 720adee commit 4fa17e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/slather/profdata_coverage_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def create_line_data

def path_on_first_line?
path = self.source.split("\n")[0].sub ":", ""
!path.include?("|//")
!path.lstrip.start_with?("1|")
end

def source_file_pathname
Expand Down

0 comments on commit 4fa17e2

Please sign in to comment.