Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 committed Feb 15, 2024
1 parent d551e48 commit 15d93c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/backend/src/registries/LocalRepositoryRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
* SPDX-License-Identifier: Apache-2.0
***********************************************************************/
import type { LocalRepository } from '@shared/src/models/ILocalRepository';
import * as podmanDesktopApi from '@podman-desktop/api';
import { MSG_LOCAL_REPOSITORY_UPDATE } from '@shared/Messages';
import type { Webview } from '@podman-desktop/api';
import { type Webview, Disposable } from '@podman-desktop/api';

/**
* The LocalRepositoryRegistry is responsible for keeping track of the directories where recipe are cloned
Expand All @@ -29,11 +28,11 @@ export class LocalRepositoryRegistry {

constructor(private webview: Webview) {}

register(localRepository: LocalRepository): podmanDesktopApi.Disposable {
register(localRepository: LocalRepository): Disposable {
this.repositories.set(localRepository.path, localRepository);
this.notify();

return podmanDesktopApi.Disposable.create(() => {
return Disposable.create(() => {
this.unregister(localRepository.path);
});
}
Expand Down

0 comments on commit 15d93c0

Please sign in to comment.