aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBenawi Adha <benawiadha@gmail.com>2022-12-11 07:21:54 +0700
committerBenawi Adha <benawiadha@gmail.com>2022-12-11 07:21:54 +0700
commitcebdc6aff0657b6d830a49fd771eaf52812932d3 (patch)
tree6d5603294de408b5bd9aa85254d5dfb27561c2a2 /src
parentb022992c6cdcd14edc7880bd4a404c6688c849f9 (diff)
downloadepy-cebdc6aff0657b6d830a49fd771eaf52812932d3.tar.gz
Simplify logic
Diffstat (limited to 'src')
-rw-r--r--src/epy_reader/reader.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/epy_reader/reader.py b/src/epy_reader/reader.py
index cd56ac1..60feed6 100644
--- a/src/epy_reader/reader.py
+++ b/src/epy_reader/reader.py
@@ -452,8 +452,7 @@ class Reader:
if not self.search_data:
candidate_text = self.input_prompt(" Regex:")
- # if isinstance(candidate_text, str) and candidate_text != "":
- if isinstance(candidate_text, str) and candidate_text:
+ if isinstance(candidate_text, str):
self.search_data = SearchData(value=candidate_text)
else:
assert isinstance(candidate_text, NoUpdate) or isinstance(candidate_text, Key)