diff --git a/frameworks/ets/ani/src/sts_request.cpp b/frameworks/ets/ani/src/sts_request.cpp index ad5dcee575f67277c06a484381419f29de7a519c..79690cd5bb72d15b4699762aa41f0b217bc52682 100644 --- a/frameworks/ets/ani/src/sts_request.cpp +++ b/frameworks/ets/ani/src/sts_request.cpp @@ -709,7 +709,7 @@ void GetNotificationBundleOption(ani_env *env, ani_object obj, return; } OHOS::Notification::NotificationBundleOption option; - if (ANI_OK == UnwrapBundleOption(env, static_cast(optionRef), option)) { + if (UnwrapBundleOption(env, static_cast(optionRef), option)) { request->SetBundleOption(std::make_shared(option)); } }