We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb66316 commit e423d6bCopy full SHA for e423d6b
SoftLayer/managers/user.py
@@ -109,9 +109,7 @@ def enable_notifications(self, notifications_names):
109
for notification in notifications:
110
notification_id = notification.get('id')
111
result = self.subscription_service.enable(id=notification_id)
112
- if result:
113
- continue
114
- else:
+ if not result:
115
return False
116
return result
117
@@ -130,9 +128,7 @@ def disable_notifications(self, notifications_names):
130
128
131
129
132
result = self.subscription_service.disable(id=notification_id)
133
134
135
136
137
138
0 commit comments