summaryrefslogtreecommitdiff
path: root/cmd2/history.py
diff options
context:
space:
mode:
Diffstat (limited to 'cmd2/history.py')
-rw-r--r--cmd2/history.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd2/history.py b/cmd2/history.py
index 6bec5316..ae2e85ad 100644
--- a/cmd2/history.py
+++ b/cmd2/history.py
@@ -24,10 +24,7 @@ class HistoryItem():
def __str__(self):
"""A convenient human readable representation of the history item"""
- if self.statement:
- return self.statement.raw
- else:
- return ''
+ return self.statement.raw
@property
def raw(self) -> str: