style: remove redundent else

Signed-off-by: Alexander Tkachev <sasha64sasha@gmail.com>
This commit is contained in:
Alexander Tkachev 2022-07-12 20:18:11 +03:00
parent 494170b997
commit 202c98766c
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ class CloudEvent:
def __eq__(self, other: typing.Any) -> bool:
if isinstance(other, CloudEvent):
return self.data == other.data and self._attributes == other._attributes
else:
return False
return False
# Data access is handled via `.data` member
# Attribute access is managed via Mapping type