diff --git a/frameworks/native/backup_ext/include/ext_backup.h b/frameworks/native/backup_ext/include/ext_backup.h index f96fa6b92d6050ddd5353dbe8e26a828662284b9..2b2ce8740ed03775b35d6a1d2b4341b9fb2d9226 100644 --- a/frameworks/native/backup_ext/include/ext_backup.h +++ b/frameworks/native/backup_ext/include/ext_backup.h @@ -78,7 +78,6 @@ public: */ sptr OnConnect(const AAFwk::Want &want) override; - /** * @brief Called when all abilities connected to this Wallpaper extension are disconnected. * @@ -153,4 +152,4 @@ private: }; } // namespace OHOS::FileManagement::Backup -#endif // OHOS_FILEMGMT_BACKUP_EXT_BACKUP_H \ No newline at end of file +#endif // OHOS_FILEMGMT_BACKUP_EXT_BACKUP_H diff --git a/frameworks/native/backup_ext/src/ext_backup.cpp b/frameworks/native/backup_ext/src/ext_backup.cpp index 0bd7341a4c1d44875b8268cd999530e9618f7e74..30ca48335625c97ab119051d354101f6eb72e3a0 100644 --- a/frameworks/native/backup_ext/src/ext_backup.cpp +++ b/frameworks/native/backup_ext/src/ext_backup.cpp @@ -180,7 +180,6 @@ sptr ExtBackup::OnConnect(const AAFwk::Want &want) } return remoteObject->AsObject(); - } catch (const BError &e) { return nullptr; } catch (const exception &e) { diff --git a/frameworks/native/backup_ext/src/ext_backup_js.cpp b/frameworks/native/backup_ext/src/ext_backup_js.cpp index c82e9d3112e548ffac99a723c23e6fc2e0710e7b..f2e602382e2631488946ed9e1adc5a0205b66716 100644 --- a/frameworks/native/backup_ext/src/ext_backup_js.cpp +++ b/frameworks/native/backup_ext/src/ext_backup_js.cpp @@ -237,23 +237,19 @@ int ExtBackupJs::CallJsMethod(const std::string &funcName, const std::vector &argv, ResultValueParser retParser) { - uv_loop_s *loop = nullptr; napi_status status = napi_get_uv_event_loop(reinterpret_cast(&jsRuntime.GetNativeEngine()), &loop); if (status != napi_ok) { - HILOGE("failed to get uv event loop."); return EINVAL; } auto param = std::make_shared(funcName, &jsRuntime, jsObj, argv, retParser); if (param == nullptr) { - HILOGE("failed to new param."); return EINVAL; } auto work = std::make_shared(); if (work == nullptr) { - HILOGE("failed to new uv_work_t."); return EINVAL; } @@ -276,7 +272,6 @@ int ExtBackupJs::CallJsMethod(const std::string &funcName, param->backupOperateCondition.notify_one(); }); if (ret != 0) { - HILOGE("failed to exec uv_queue_work."); return EINVAL; } @@ -285,4 +280,4 @@ int ExtBackupJs::CallJsMethod(const std::string &funcName, return ERR_OK; } -} // namespace OHOS::FileManagement::Backup \ No newline at end of file +} // namespace OHOS::FileManagement::Backup diff --git a/frameworks/native/backup_ext/src/ext_extension.cpp b/frameworks/native/backup_ext/src/ext_extension.cpp index 4a3bcd1229b481a47bdce80d13ff26c5ae29b6d0..8f43e33839189f73bc6c5b7ea5f25df1ae4bd3ac 100644 --- a/frameworks/native/backup_ext/src/ext_extension.cpp +++ b/frameworks/native/backup_ext/src/ext_extension.cpp @@ -573,4 +573,4 @@ void BackupExtExtension::AsyncTaskRestoreForUpgrade() } }); } -} // namespace OHOS::FileManagement::Backup \ No newline at end of file +} // namespace OHOS::FileManagement::Backup