diff --git a/mocha_server.py b/mocha_server.py index 7f0283b..61cac9d 100755 --- a/mocha_server.py +++ b/mocha_server.py @@ -141,9 +141,7 @@ def process_request(uri): output = None - if len(parts) < 2: - output = None - elif parts[1] == 'users' and len(parts) > 2: + if parts[1] == 'users' and len(parts) > 2: if ',' in parts[2]: output = fetch_users(parts[2].split(',')) else: