summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2017-09-23 17:07:41 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2017-09-23 17:07:41 -0400
commit1c60c8a7ebc3654e9ddf80d5306cbfb7bac7aaed (patch)
treeb135107eef9dd2ed617cc7baf78a2070c5519dd6 /cmd2.py
parente991c206cf30a947562c04e4250b47b3c2c4623d (diff)
downloadcmd2-git-1c60c8a7ebc3654e9ddf80d5306cbfb7bac7aaed.tar.gz
Removed a conditional which was made redundant by an outer conditional that got added
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/cmd2.py b/cmd2.py
index d2cae8f7..f01067a9 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -1688,10 +1688,6 @@ Edited files are run on close if the ``autorun_on_edit`` settable parameter is T
# Make sure the index is actually within the history
if 1 <= history_idx <= len(self.history):
history_item = self._last_matching(history_idx)
- if history_item is None:
- self.perror('index {!r} does not exist within the history'.format(orig_indx),
- traceback_war=False)
- return
else:
self.perror('index {!r} does not exist within the history'.format(orig_indx), traceback_war=False)
return