Skip to content

Commit

Permalink
DuplicateFileBear.py: Remove file argument
Browse files Browse the repository at this point in the history
This removes the file argument when result is yielded.

Fixes coala#2945
  • Loading branch information
akshatkarani committed Sep 19, 2019
1 parent 4371d72 commit bf25a18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bears/general/DuplicateFileBear.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ def run(self):
second_file_name = file_pair[1]
message = ('File ' + first_file_name + ' is identical'
' to File ' + second_file_name)
yield Result.from_values(origin=self, message=message,
severity=RESULT_SEVERITY.INFO,
file=first_file_name)
yield Result(origin=self,
message=message,
severity=RESULT_SEVERITY.INFO)

0 comments on commit bf25a18

Please sign in to comment.