Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Jan 10, 2024
1 parent d1ce3bf commit aaaf965
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions decompiler/backend/codevisitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ def swap_branches():
true_child, false_child = false_child, true_child
true_str, false_str = false_str, true_str

length_comparisons = {
"none": False,
"smallest": len(true_str) > len(false_str),
"largest": len(true_str) < len(false_str)
}
length_comparisons = {"none": False, "smallest": len(true_str) > len(false_str), "largest": len(true_str) < len(false_str)}
if length_comparisons[self._preferred_true_branch]:
swap_branches()

Expand Down

0 comments on commit aaaf965

Please sign in to comment.