Skip to content

Commit 00c0a48

Browse files
committed
chore(ruff): replace 'else: if bool_exp:' with 'elif bool_exp:'
1 parent 7ace15a commit 00c0a48

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

roundup/rest.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,8 @@ def patch_data(self, op, old_val, new_val):
652652
result = []
653653
elif isinstance(new_val, list):
654654
result = [x for x in old_val if x not in new_val]
655-
else:
656-
if new_val in old_val:
657-
old_val.remove(new_val)
655+
elif new_val in old_val:
656+
old_val.remove(new_val)
658657
elif isinstance(old_val, dict):
659658
if new_val is None:
660659
result = {}
@@ -1137,8 +1136,7 @@ def get_element(self, class_name, item_id, input_payload):
11371136
result = {}
11381137
if props is None:
11391138
props = set(class_obj.getprops(protected=protected))
1140-
else:
1141-
if verbose > 1:
1139+
elif verbose > 1:
11421140
lp = class_obj.labelprop()
11431141
props.add(lp)
11441142

0 commit comments

Comments
 (0)