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:
parent
da7387aeae
commit
c429509a5b
@ -9,7 +9,11 @@ export type RemovePath = (filePath: string) => Promise<void>;
|
|||||||
|
|
||||||
const removePathInjectable = getInjectable({
|
const removePathInjectable = getInjectable({
|
||||||
id: "remove-path",
|
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;
|
export default removePathInjectable;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user