Skip to content

Commit 1b2af40

Browse files
authored
Merge pull request #27 from arnaudsjs/issue/fix-bug-stable-sync
Fix bug where stable sync is used when sorting is enabled
2 parents db51332 + b350956 commit 1b2af40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy_baseline/commands/_sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _stable_sync(self, old_bline: list[str], new_bline: list[str]) -> bool:
5252
However, sorting is not enabled by default because I want to keep backward
5353
compatibility.
5454
"""
55-
if not self.config.sort_baseline:
55+
if self.config.sort_baseline:
5656
return False
5757
old_set = set(old_bline)
5858
new_set = set(new_bline)

0 commit comments

Comments
 (0)