Commits

Florent Xicluna committed ffeca0f

Wrong exit code for the VCS hooks

Comments (0)

Files changed (1)

     report = flake8_style.check_files(files_modified)
 
     if strict:
-        return report.get_file_results()
+        return report.total_errors
 
     return 0
 
     strict = ui.configbool('flake8', 'strict', default=True)
 
     if strict:
-        return report.get_file_results()
+        return report.total_errors
 
     return 0