You need to sign in or sign up before continuing.
未验证 提交 2419264e 编写于 作者: O openharmony_ci 提交者: Gitee

!11483 代码格式修改

Merge pull request !11483 from jackd320/master
...@@ -102,7 +102,7 @@ try { ...@@ -102,7 +102,7 @@ try {
let localUpdater = update.getLocalUpdater(); let localUpdater = update.getLocalUpdater();
} catch(error) { } catch(error) {
console.error(`Fail to get localUpdater error: ${error}`); console.error(`Fail to get localUpdater error: ${error}`);
} };
``` ```
## Updater ## Updater
...@@ -844,7 +844,7 @@ const versionDigestInfo = { ...@@ -844,7 +844,7 @@ const versionDigestInfo = {
}; };
// 清除选项 // 清除选项
lconstet clearOptions = { const clearOptions = {
status: update.UpgradeStatus.UPGRADE_FAIL, status: update.UpgradeStatus.UPGRADE_FAIL,
}; };
updater.clearError(versionDigestInfo, clearOptions).then(() => { updater.clearError(versionDigestInfo, clearOptions).then(() => {
...@@ -1248,7 +1248,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>): Promise\<void ...@@ -1248,7 +1248,7 @@ applyNewVersion(upgradeFiles: Array<[UpgradeFile](#upgradefile)>): Promise\<void
**示例:** **示例:**
```ts ```ts
localUpdater upgradeFiles = [{ const upgradeFiles = [{
fileType: update.ComponentType.OTA, // OTA包 fileType: update.ComponentType.OTA, // OTA包
filePath: "path" // 本地升级包路径 filePath: "path" // 本地升级包路径
}]; }];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册