Skip to content
Snippets Groups Projects
Commit db8d5dba authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Server: little simplification

parent d7eaad2f
Branches
No related tags found
No related merge requests found
...@@ -271,8 +271,7 @@ def get_depsgraph(manager_id, request_json): ...@@ -271,8 +271,7 @@ def get_depsgraph(manager_id, request_json):
cursor = tasks_coll.find(task_query) cursor = tasks_coll.find(task_query)
depsgraph = list(cursor) depsgraph = list(cursor)
is_empty = len(depsgraph) == 0 if len(depsgraph) == 0:
if is_empty:
log.debug('Returning empty depsgraph') log.debug('Returning empty depsgraph')
if modified_since is not None: if modified_since is not None:
return '', 304 # Not Modified return '', 304 # Not Modified
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment