diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-01-31 13:18:49 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-01-31 13:18:49 +0200 |
commit | fbe28c683fb20dbc3d20ae2a7575fc8ce18c4555 (patch) | |
tree | 2d58f14fcbd49725e868894bd11e711afcea77d9 | |
parent | db46996db55860f42f7ad7904d5b2762364ef54d (diff) | |
download | qvisqve-fbe28c683fb20dbc3d20ae2a7575fc8ce18c4555.tar.gz |
Fix: style issues whinged at by pylint
-rw-r--r-- | salami/token_router.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/salami/token_router.py b/salami/token_router.py index b7ababb..c0b373c 100644 --- a/salami/token_router.py +++ b/salami/token_router.py @@ -88,10 +88,9 @@ class TokenRouter(salami.Router): scope = params.get('scope', []) if len(scope) > 1: return None - elif len(scope) == 0: - return '' - else: + if scope: return scope[0] + return '' class Clients: |