From e7c209f4207ed14cddc8a7881baad0ed8b78cb51 Mon Sep 17 00:00:00 2001 From: akshatkarani Date: Fri, 9 Aug 2019 19:41:23 +0530 Subject: [PATCH] DuplicateFileBear.py: Remove file argument This removes the file argument when result is yielded. Fixes https://github.com/coala/coala-bears/issues/2945 --- bears/general/DuplicateFileBear.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bears/general/DuplicateFileBear.py b/bears/general/DuplicateFileBear.py index 0bd4603276..acf9221a88 100644 --- a/bears/general/DuplicateFileBear.py +++ b/bears/general/DuplicateFileBear.py @@ -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)