Merge pull request #4389 from fufesou/refact/remove_all_assert
remove all assert in non-test code
This commit is contained in:
commit
5f0f4957b9
5 changed files with 9 additions and 7 deletions
|
|
@ -80,7 +80,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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue