Skip to content

Commit 65ef61c

Browse files
committed
Revert test code
1 parent 851045a commit 65ef61c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hikari/impl/buckets.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,7 @@ async def __aexit__(
261261
@property
262262
def is_unknown(self) -> bool:
263263
"""Whether it represents an UNKNOWN bucket."""
264-
# A quicker ".startswith". Since this is an insanely hot path, we want this
265-
# to be as quick as possible
266-
return self.name[: len(UNKNOWN_HASH)] == UNKNOWN_HASH
264+
return self.name.startswith(UNKNOWN_HASH)
267265

268266
def release(self) -> None:
269267
"""Release the lock on the bucket."""

0 commit comments

Comments
 (0)