1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix behaviour regression

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-12-09 14:51:35 -05:00
parent da7387aeae
commit c429509a5b

View File

@ -9,7 +9,11 @@ export type RemovePath = (filePath: string) => Promise<void>;
const removePathInjectable = getInjectable({
id: "remove-path",
instantiate: (di): RemovePath => di.inject(fsInjectable).rm,
instantiate: (di): RemovePath => {
const { rm } = di.inject(fsInjectable);
return (filePath) => rm(filePath, { force: true });
},
});
export default removePathInjectable;