Skip to content

Commit

Permalink
Remove unnecessary (but harmless) .values.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Jul 29, 2024
1 parent 6b96456 commit f4e4207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def make_room_for_new_protocol(self) -> None:
protocols = {
p.protocol_id
for p in self._protocol_store.get_all()
if p.protocol_kind == self._protocol_kind.value
if p.protocol_kind == self._protocol_kind
}

protocol_run_usage_info = [
Expand Down
2 changes: 1 addition & 1 deletion robot-server/robot_server/protocols/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async def create_protocol( # noqa: C901
quick_transfer_protocols = [
protocol
for protocol in protocol_store.get_all()
if protocol.protocol_kind == ProtocolKind.QUICK_TRANSFER.value
if protocol.protocol_kind == ProtocolKind.QUICK_TRANSFER
]
if len(quick_transfer_protocols) >= maximum_quick_transfer_protocols:
raise HTTPException(
Expand Down

0 comments on commit f4e4207

Please sign in to comment.