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 Aug 9, 2019
1 parent c3ae6bc commit 993e86c
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 993e86c

Please sign in to comment.