Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed Feb 1, 2024
1 parent cb791a2 commit e48496d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/backend/src/studio-api-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,17 @@ export class StudioApiImpl implements StudioAPI {
async requestRemoveLocalModel(modelId: string): Promise<void> {
const modelInfo = this.modelsManager.getLocalModelInfo(modelId);

podmanDesktopApi.window.showWarningMessage(
`Are you sure you want to delete ${modelId} ? The following files will be removed from disk "${modelInfo.file}".`,
'Confirm',
'Cancel'
).then((result: string) => {
if(result === 'Confirm') {
this.modelsManager.deleteLocalModel(modelId);
}
});
podmanDesktopApi.window

Check failure on line 121 in packages/backend/src/studio-api-impl.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / windows-2022

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator

Check failure on line 121 in packages/backend/src/studio-api-impl.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / ubuntu-22.04

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator

Check failure on line 121 in packages/backend/src/studio-api-impl.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / macos-12

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
.showWarningMessage(
`Are you sure you want to delete ${modelId} ? The following files will be removed from disk "${modelInfo.file}".`,
'Confirm',
'Cancel',
)
.then((result: string) => {
if (result === 'Confirm') {
this.modelsManager.deleteLocalModel(modelId);

Check failure on line 129 in packages/backend/src/studio-api-impl.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / windows-2022

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator

Check failure on line 129 in packages/backend/src/studio-api-impl.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / ubuntu-22.04

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator

Check failure on line 129 in packages/backend/src/studio-api-impl.ts

View workflow job for this annotation

GitHub Actions / linter, formatters and unit tests / macos-12

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}
});
}

async getModelsDirectory(): Promise<string> {
Expand Down

0 comments on commit e48496d

Please sign in to comment.