commit 0e49327: [Minor] Remove redundant check
Vsevolod Stakhov
vsevolod at rspamd.com
Mon Jun 26 20:07:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-06-26 21:01:25 +0100
URL: https://github.com/rspamd/rspamd/commit/0e4932734ca0d7f5e1e5e90e554b186e271a0a4f (HEAD -> master)
[Minor] Remove redundant check
---
src/libserver/composites/composites_manager.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/libserver/composites/composites_manager.cxx b/src/libserver/composites/composites_manager.cxx
index c0f6d3a49..fc19a4162 100644
--- a/src/libserver/composites/composites_manager.cxx
+++ b/src/libserver/composites/composites_manager.cxx
@@ -266,10 +266,7 @@ struct map_cbdata {
static void
map_dtor (struct map_cb_data *data) {
auto *cbd = reinterpret_cast<map_cbdata *>(data->cur_data);
-
- if (cbd) {
- delete cbd;
- }
+ delete cbd;
}
};
More information about the Commits
mailing list