revert formatting nostr

This commit is contained in:
dni ⚡ 2023-03-19 11:15:26 +01:00
parent bb1941445d
commit 4549d0af09
No known key found for this signature in database
GPG key ID: 886317704CC4E618
11 changed files with 48 additions and 71 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