From 5b21baed21c23ba1c0b90bdb29b3132a91ff923c Mon Sep 17 00:00:00 2001
From: coffeedogs <coffeedogs.bitmessage@gmail.com>
Date: Wed, 16 May 2018 02:29:25 +0100
Subject: [PATCH] Fixed: Only re-calculate if something changed

---
 fabfile/tasks.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fabfile/tasks.py b/fabfile/tasks.py
index 22c5d147..98ab2f0e 100644
--- a/fabfile/tasks.py
+++ b/fabfile/tasks.py
@@ -158,8 +158,8 @@ def code_quality(verbose=True, details=False, fix=False, filename=None, top=10):
     if fix:
         for item in sort_and_slice(results, top):
             autopep8(item['path_to_file'])
-    # Recalculate results after autopep8 to surprise the user the least
-    results = get_tool_results(file_list)
+        # Recalculate results after autopep8 to surprise the user the least
+        results = get_tool_results(file_list)
 
     print_results(results, top, verbose, details)
     sys.exit(sum([item['total_violations'] for item in results]))