Skip to content

Commit

Permalink
fix: remove unnecessary void
Browse files Browse the repository at this point in the history
Signed-off-by: lstocchi <[email protected]>
  • Loading branch information
lstocchi committed Jan 29, 2024
1 parent b6e2ed7 commit 27d8f24
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
Expand Up @@ -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: [] });
Expand Down

0 comments on commit 27d8f24

Please sign in to comment.