Skip to content

Commit 8a44256

Browse files
committed
style: fix formatting
1 parent da98061 commit 8a44256

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

editor/src/electron/events/shell.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { platform } from "os";
22
import { ipcMain, shell } from "electron";
33

44
ipcMain.on("editor:trash-items", async (ev, items) => {
5-
const isWindows = platform() === "win32";
6-
items = items.map((item) => (isWindows ? item.replace(/\//g, "\\") : item.replace(/\\/g, "/")));
5+
const isWindows = platform() === "win32";
6+
items = items.map((item) => (isWindows ? item.replace(/\//g, "\\") : item.replace(/\\/g, "/")));
77

88
try {
99
await Promise.all(items.map((item) => shell.trashItem(item)));
@@ -15,8 +15,8 @@ ipcMain.on("editor:trash-items", async (ev, items) => {
1515
});
1616

1717
ipcMain.on("editor:show-item", (_, item) => {
18-
const isWindows = platform() === "win32";
19-
item = isWindows ? item.replace(/\//g, "\\") : item.replace(/\\/g, "/");
18+
const isWindows = platform() === "win32";
19+
item = isWindows ? item.replace(/\//g, "\\") : item.replace(/\\/g, "/");
2020

2121
shell.showItemInFolder(item);
2222
});

0 commit comments

Comments
 (0)