Revert "chore: code format"

This reverts commit 619e0f05e2.
This commit is contained in:
Vlad Stan 2023-03-23 10:57:29 +02:00
parent 619e0f05e2
commit f369e2fdac
20 changed files with 77 additions and 117 deletions

View file

@ -3,7 +3,6 @@ class ClientMessageType:
REQUEST = "REQ"
CLOSE = "CLOSE"
class RelayMessageType:
EVENT = "EVENT"
NOTICE = "NOTICE"
@ -11,10 +10,6 @@ class RelayMessageType:
@staticmethod
def is_valid(type: str) -> bool:
if (
type == RelayMessageType.EVENT
or type == RelayMessageType.NOTICE
or type == RelayMessageType.END_OF_STORED_EVENTS
):
if type == RelayMessageType.EVENT or type == RelayMessageType.NOTICE or type == RelayMessageType.END_OF_STORED_EVENTS:
return True
return False
return False