remove all assert in non-test code

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-05-16 14:40:33 +08:00
parent 2d7bebb54b
commit edf6b00f13
5 changed files with 9 additions and 7 deletions

View File

@@ -79,7 +79,7 @@ impl PluginReturn {
if self.is_success() {
(self.code, "".to_owned())
} else {
assert!(!self.msg.is_null());
debug_assert!(!self.msg.is_null(), "msg is null");
let msg = cstr_to_string(self.msg).unwrap_or_default();
free_c_ptr(self.msg as _);
self.msg = null();