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 e56129a commit 706a7ec
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 @@ -25,7 +25,7 @@ def create_line_data

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

def source_file_pathname
Expand Down

0 comments on commit 706a7ec

Please sign in to comment.