Skip to content

Commit baab388

Browse files
authored
remove if statement
if statement is not needed when doing popping like this. You can provide pop with a default value
1 parent 01f5c2d commit baab388

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

f5/bigip/tm/gtm/topology.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ def load(self, **kwargs):
148148

149149
def exists(self, **kwargs):
150150
"""Providing a partition is not necessary on topology; causes errors"""
151-
if 'partition' in kwargs:
152-
kwargs.pop('partition')
151+
kwargs.pop('partition', None)
153152
kwargs['transform_name'] = True
154153
return self._exists(**kwargs)
155154

0 commit comments

Comments
 (0)