Skip to content

Commit 1007834

Browse files
committed
minor refactor in reading auth rules file
1 parent 74bd435 commit 1007834

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

loris/resolver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ def get_auth_rules(self, ident, source_fp):
9191
xjsfp = source_fp.rsplit('.', 1)[0] + "." + self.auth_rules_ext
9292
if exists(xjsfp):
9393
with open(xjsfp) as fh:
94-
xjs = json.load(fh)
95-
return xjs
94+
return json.load(fh)
9695
else:
9796
return {}
9897

0 commit comments

Comments
 (0)