You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
Enhancement Request
located at:
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/WebhookUtil.java line 93
analysis and explanation:
This method checks for the presence of a key in a map using containsKey(), before attempting to fetch the value of the key using get(). This equates to doing two map lookups in a row.
Describe the solution you'd like
It is much simpler to just fetch the value with get, and checking for non null instead.
reference:
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Search before asking
Enhancement Request
located at:
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/WebhookUtil.java line 93
analysis and explanation:
This method checks for the presence of a key in a map using containsKey(), before attempting to fetch the value of the key using get(). This equates to doing two map lookups in a row.
Describe the solution you'd like
It is much simpler to just fetch the value with get, and checking for non null instead.

reference:
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: