diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-09-23 17:07:41 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2017-09-23 17:07:41 -0400 |
commit | 1c60c8a7ebc3654e9ddf80d5306cbfb7bac7aaed (patch) | |
tree | b135107eef9dd2ed617cc7baf78a2070c5519dd6 /cmd2.py | |
parent | e991c206cf30a947562c04e4250b47b3c2c4623d (diff) | |
download | cmd2-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-x | cmd2.py | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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 |