diff options
author | Benawi Adha <benawiadha@gmail.com> | 2022-12-11 07:21:54 +0700 |
---|---|---|
committer | Benawi Adha <benawiadha@gmail.com> | 2022-12-11 07:21:54 +0700 |
commit | cebdc6aff0657b6d830a49fd771eaf52812932d3 (patch) | |
tree | 6d5603294de408b5bd9aa85254d5dfb27561c2a2 /src | |
parent | b022992c6cdcd14edc7880bd4a404c6688c849f9 (diff) | |
download | epy-cebdc6aff0657b6d830a49fd771eaf52812932d3.tar.gz |
Simplify logic
Diffstat (limited to 'src')
-rw-r--r-- | src/epy_reader/reader.py | 3 |
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) |