Skip to content

Commit

Permalink
fix: remove unnecessary void (#176)
Browse files Browse the repository at this point in the history
Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi authored Jan 29, 2024
1 parent b6e2ed7 commit 51dc5d9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/backend/src/studio-api-impl.ts
Original file line number Diff line number Diff line change
@@ -72,10 +72,9 @@ export class StudioApiImpl implements StudioAPI {
const model = await this.getModelById(modelId);

// Do not wait for the pull application, run it separately
void podmanDesktopApi.window
.withProgress<void>(
{ location: podmanDesktopApi.ProgressLocation.TASK_WIDGET, title: `Pulling ${recipe.name}.` },
() => this.applicationManager.pullApplication(recipe, model),
podmanDesktopApi.window
.withProgress({ location: podmanDesktopApi.ProgressLocation.TASK_WIDGET, title: `Pulling ${recipe.name}.` }, () =>
this.applicationManager.pullApplication(recipe, model),
)
.catch(() => {
this.recipeStatusRegistry.setStatus(recipeId, { recipeId: recipeId, state: 'error', tasks: [] });

0 comments on commit 51dc5d9

Please sign in to comment.