File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def return_issuer(self, issuer_id):
122
122
:return: A KeyIssuer instance
123
123
"""
124
124
_issuer = self ._get_issuer (issuer_id )
125
- if not _issuer :
125
+ if _issuer is None :
126
126
return self ._add_issuer (issuer_id )
127
127
return _issuer
128
128
@@ -256,10 +256,9 @@ def get_issuer_keys(self, issuer_id):
256
256
:return: A possibly empty list of keys
257
257
"""
258
258
_issuer = self ._get_issuer (issuer_id )
259
- if _issuer is not None :
260
- return _issuer .all_keys ()
261
- else :
259
+ if _issuer is None :
262
260
return []
261
+ return _issuer .all_keys ()
263
262
264
263
@deprecated_alias (issuer = 'issuer_id' , owner = 'issuer_id' )
265
264
def __contains__ (self , issuer_id ):
@@ -680,7 +679,7 @@ def load(self, info):
680
679
@deprecated_alias (issuer = 'issuer_id' , owner = 'issuer_id' )
681
680
def key_summary (self , issuer_id ):
682
681
_issuer = self ._get_issuer (issuer_id )
683
- if _issuer :
682
+ if _issuer is not None :
684
683
return _issuer .key_summary ()
685
684
686
685
raise KeyError ('Unknown Issuer ID: "{}"' .format (issuer_id ))
You can’t perform that action at this time.
0 commit comments