Skip to content

Commit e423d6b

Browse files
committed
fix tox analysis
1 parent eb66316 commit e423d6b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

SoftLayer/managers/user.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ def enable_notifications(self, notifications_names):
109109
for notification in notifications:
110110
notification_id = notification.get('id')
111111
result = self.subscription_service.enable(id=notification_id)
112-
if result:
113-
continue
114-
else:
112+
if not result:
115113
return False
116114
return result
117115

@@ -130,9 +128,7 @@ def disable_notifications(self, notifications_names):
130128
for notification in notifications:
131129
notification_id = notification.get('id')
132130
result = self.subscription_service.disable(id=notification_id)
133-
if result:
134-
continue
135-
else:
131+
if not result:
136132
return False
137133
return result
138134

0 commit comments

Comments
 (0)