summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-06-24 20:13:09 +0300
committerLars Wirzenius <liw@liw.fi>2018-06-24 20:13:09 +0300
commit9627326819425c8246b3b5f3591c98b5b671ce93 (patch)
tree59f451b0bb48126f8d4a0b3234436184a8da12dd
parent28c7f111a67ba38a11607ef846fc265b413c1fcf (diff)
downloadick2-9627326819425c8246b3b5f3591c98b5b671ce93.tar.gz
Refactor: use existing variable instead of .get()ing it again
-rw-r--r--ick2/workapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ick2/workapi.py b/ick2/workapi.py
index d861a48..5179f90 100644
--- a/ick2/workapi.py
+++ b/ick2/workapi.py
@@ -160,7 +160,7 @@ class WorkAPI(ick2.APIbase):
sm = ick2.BuildStateMachine(build_obj)
event = ick2.create_build_event(update)
sm.handle_event(event)
- action_ended = update['exit_code'] is not None
+ action_ended = exit_code is not None
if action_ended:
self._append_text_to_build_log(