Skip to content

Commit 1c60c8a

Browse files
committed
Removed a conditional which was made redundant by an outer conditional that got added
1 parent e991c20 commit 1c60c8a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cmd2.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,10 +1688,6 @@ def do_edit(self, arg, opts=None):
16881688
# Make sure the index is actually within the history
16891689
if 1 <= history_idx <= len(self.history):
16901690
history_item = self._last_matching(history_idx)
1691-
if history_item is None:
1692-
self.perror('index {!r} does not exist within the history'.format(orig_indx),
1693-
traceback_war=False)
1694-
return
16951691
else:
16961692
self.perror('index {!r} does not exist within the history'.format(orig_indx), traceback_war=False)
16971693
return

0 commit comments

Comments
 (0)