Skip to content
Snippets Groups Projects
Commit 9d9d3953 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Slightly reduce the insane amounts of indentation in main http server response...

Slightly reduce the insane amounts of indentation in main http server response path, by 'continue'ing around a non-match or falling through
parent dc4b774f
Branches
Tags
No related merge requests found
......@@ -124,7 +124,9 @@ class JsonResource(HttpServer, resource.Resource):
# and path regex match
for path_entry in self.path_regexs.get(request.method, []):
m = path_entry.pattern.match(request.path)
if m:
if not m:
continue
# We found a match! Trigger callback and then return the
# returned response. We pass both the request and any
# matched groups from the regex to the callback.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment