Skip to content

Commit f30feac

Browse files
committed
Add shorthand for returning
1 parent ce0e6ff commit f30feac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/arguments/utility.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,7 @@ def navigate_questions_panel(self, playbook=False):
228228
try:
229229
question_link = self.questions_data[options_index][2]
230230
except Exception:
231-
if(playbook):
232-
sys.exit()
233-
else:
234-
return
231+
return sys.exit() if playbook else None
235232
else:
236233
if(question_menu.chosen_accept_key == 'enter'):
237234
webbrowser.open(question_link)

0 commit comments

Comments
 (0)