diff --git a/frameworks/ans/native/src/reminder_request.cpp b/frameworks/ans/native/src/reminder_request.cpp index f6ab680f167cd3b4f934980a0b7e7056a4dc967c..31e706c4819a94cb83dced398ef2a6461a849a16 100644 --- a/frameworks/ans/native/src/reminder_request.cpp +++ b/frameworks/ans/native/src/reminder_request.cpp @@ -1392,7 +1392,7 @@ bool ReminderRequest::UpdateNextReminder(const bool &force) } else { result = UpdateNextReminder(); } - std::string info = result == true ? "success" : "no next"; + std::string info = result ? "success" : "no next"; ANSR_LOGI("updateNextReminder(id=%{public}d, %{public}s): force=%{public}d, trigger time is: %{public}s", reminderId_, info.c_str(), force, GetDateTimeInfo(static_cast(triggerTimeInMilli_ / MILLI_SECONDS)).c_str());