Skip to content

Commit

Permalink
minor refactor in reading auth rules file
Browse files Browse the repository at this point in the history
  • Loading branch information
bcail committed Jan 6, 2020
1 parent 74bd435 commit 1007834
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions loris/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def get_auth_rules(self, ident, source_fp):
xjsfp = source_fp.rsplit('.', 1)[0] + "." + self.auth_rules_ext
if exists(xjsfp):
with open(xjsfp) as fh:
xjs = json.load(fh)
return xjs
return json.load(fh)
else:
return {}

Expand Down

0 comments on commit 1007834

Please sign in to comment.