Skip to content
Snippets Groups Projects
Commit ff8725bb authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

tools: moveconfig: remove redundant else: after sys.exit()


Nesting by "else:" is not generally useful after such statements
as return, break, sys.exit(), etc.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 6ff36d21
Branches
Tags
No related merge requests found
......@@ -623,9 +623,7 @@ class Slot:
COLOR_LIGHT_CYAN, errout)
if self.options.exit_on_error:
sys.exit("Exit on error.")
else:
# If --exit-on-error flag is not set,
# skip this board and continue.
# If --exit-on-error flag is not set, skip this board and continue.
# Record the failed board.
self.failed_boards.append(self.defconfig)
self.state = STATE_IDLE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment