Skip to content

Commit 482516a

Browse files
committed
trival update
1 parent 93b9d32 commit 482516a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/os_urlpattern/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _match(self, pattern_matcher, args):
201201
speed_logger.debug('[MATCHING]')
202202
line = line.strip()
203203
result = self._match_result(pattern_matcher, line)
204-
if result is None:
204+
if not result:
205205
result = b'N'
206206
binary_stdout.write(result)
207207
binary_stdout.write(b'\t')

src/os_urlpattern/parsed_piece_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __hash__(self):
3030
def view(self):
3131
if self._view is None:
3232
self._view = fuzzy_view(
33-
[p.fuzzy_rule for p in self._parsed_pieces])
33+
[p.fuzzy_rule for p in self.parsed_pieces])
3434
return self._view
3535

3636
@property

0 commit comments

Comments
 (0)