Skip to content

Commit 0bba268

Browse files
move a badly-positioned comment
1 parent 983f24a commit 0bba268

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gitignore_plugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ def update_file_exclude_patterns():
4444
else:
4545
file_exclude_patterns.append(path)
4646

47-
# Only make changes if anything has actually changed, to avoid spamming the
48-
# sublime console
4947
new_files = set(file_exclude_patterns)
5048
old_files = set(s.get('file_exclude_patterns', []))
5149
new_folders = set(folder_exclude_patterns)
5250
old_folders = set(s.get('folder_exclude_patterns', []))
5351

54-
52+
# Only make changes if anything has actually changed, to avoid spamming the
53+
# sublime console
5554
if new_files != old_files or new_folders != old_folders:
5655
s.set('file_exclude_patterns', file_exclude_patterns)
5756
s.set('folder_exclude_patterns', folder_exclude_patterns)

0 commit comments

Comments
 (0)