1
0

Refactor return value so we don't create identical lists each time.

This commit is contained in:
Jorik Schellekens
2019-08-05 13:48:09 +01:00
parent d859c34fb9
commit e7f42857bb
+4 -4
View File
@@ -216,11 +216,11 @@ class DeviceWorkerHandler(BaseHandler):
possibly_joined = []
possibly_left = []
opentracing.log_kv(
{"changed": list(possibly_joined), "left": list(possibly_left)}
)
result = {"changed": list(possibly_joined), "left": list(possibly_left)}
return {"changed": list(possibly_joined), "left": list(possibly_left)}
opentracing.log_kv(result)
return {result}
class DeviceHandler(DeviceWorkerHandler):