From d9a34fea7a4a9bc801f254a9b12a569d862ebada Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Wed, 31 Aug 2022 07:37:07 -0400 Subject: [PATCH] Remove duplicate watchInjectable Signed-off-by: Sebastian Malton --- src/common/fs/watch.injectable.ts | 14 -------------- .../watch-file-changes.injectable.ts | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 src/common/fs/watch.injectable.ts diff --git a/src/common/fs/watch.injectable.ts b/src/common/fs/watch.injectable.ts deleted file mode 100644 index eddee2da2e..0000000000 --- a/src/common/fs/watch.injectable.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) OpenLens Authors. All rights reserved. - * Licensed under MIT License. See LICENSE in root directory for more information. - */ -import { getInjectable } from "@ogre-tools/injectable"; -import { watch } from "chokidar"; - -const watchInjectable = getInjectable({ - id: "watch", - instantiate: () => watch, - causesSideEffects: true, -}); - -export default watchInjectable; diff --git a/src/main/catalog-sources/kubeconfig-sync/watch-file-changes.injectable.ts b/src/main/catalog-sources/kubeconfig-sync/watch-file-changes.injectable.ts index 91709afee0..2fb03c12d4 100644 --- a/src/main/catalog-sources/kubeconfig-sync/watch-file-changes.injectable.ts +++ b/src/main/catalog-sources/kubeconfig-sync/watch-file-changes.injectable.ts @@ -13,7 +13,7 @@ import { inspect } from "util"; import type { CatalogEntity } from "../../../common/catalog"; import type { Cluster } from "../../../common/cluster/cluster"; import fsInjectable from "../../../common/fs/fs.injectable"; -import watchInjectable from "../../../common/fs/watch.injectable"; +import watchInjectable from "../../../common/fs/watch/watch.injectable"; import type { Disposer } from "../../../common/utils"; import { getOrInsertWith, iter } from "../../../common/utils"; import diffChangedKubeconfigInjectable from "./diff-changed-kubeconfig.injectable";