This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-python.git
The following commit(s) were added to refs/heads/main by this push:
new dbb99ee Remove redundant case-sensitive RpcType name check (#46)
dbb99ee is described below
commit dbb99eecb57209a1094d0d830ed1b66271db661e
Author: Ahmed Tarek <[email protected]>
AuthorDate: Tue Feb 25 08:52:35 2025 +0200
Remove redundant case-sensitive RpcType name check (#46)
---
src/dubbo/types.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/dubbo/types.py b/src/dubbo/types.py
index 6f0fd12..f6c452b 100644
--- a/src/dubbo/types.py
+++ b/src/dubbo/types.py
@@ -57,6 +57,4 @@ class RpcTypes(enum.Enum):
# ignore case
if item.value.name.lower() == name.lower():
return item.value
- if item.value.name == name:
- return item.value
raise ValueError(f"Unknown RpcType name: {name}")