Skip to content

Commit 3776520

Browse files
authored
[kafka] Fix incorrect exception code (#40210)
Commit Message: [kafka] Fix incorrect exception code Additional Description: This isn't java, we don't `new` everything. Signed-off-by: Raven Black <[email protected]>
1 parent 877b982 commit 3776520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/kafka/filters/network/source/broker/rewriter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ template <typename T> static T& extractResponseData(AbstractResponseSharedPtr& a
2525
using TSharedPtr = std::shared_ptr<Response<T>>;
2626
TSharedPtr cast = std::dynamic_pointer_cast<typename TSharedPtr::element_type>(arg);
2727
if (nullptr == cast) {
28-
throw new EnvoyException("bug: response class not matching response API key");
28+
throw EnvoyException("bug: response class not matching response API key");
2929
} else {
3030
return cast->data_;
3131
}

0 commit comments

Comments
 (0)