Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 authored Apr 30, 2024
1 parent ac42642 commit ded8910
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/backend/src/managers/models/UpdateManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class UpdateManager extends Publisher<UpdateInfo[]> implements Disposable
}

async requestUpdate(modelId: string): Promise<void> {
console.log(`requestUpdate ${modelId}`);

const modelInfo: ModelInfo = this.modelsManager.getModelInfo(modelId);
if (!modelInfo.url || !modelInfo.file) throw new Error(`model with id ${modelId} cannot be updated.`);
Expand All @@ -90,7 +89,6 @@ export class UpdateManager extends Publisher<UpdateInfo[]> implements Disposable
throw new Error('Something went wrong: undefined etag.');
}

console.log(`requestDownloadModel ${modelId}`);
await this.modelsManager.requestDownloadModel(modelInfo, {
'is-update': 'true',
});
Expand Down

0 comments on commit ded8910

Please sign in to comment.