Skip to content

Commit ad316fb

Browse files
committed
refactor(main): organize main structure
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 043f174 commit ad316fb

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/utils.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export function takeScreenshot(mb: Menubar) {
2929
}
3030

3131
export function openLogsDirectory() {
32-
const filePath = log.transports.file?.getFile()?.path;
32+
const logFilePath = log.transports.file?.getFile()?.path;
3333

34-
if (!filePath) {
34+
if (!logFilePath) {
3535
logError(
3636
'openLogsDirectory',
3737
'Could not find log directory!',
@@ -40,7 +40,6 @@ export function openLogsDirectory() {
4040
return;
4141
}
4242

43-
const logDirectory = path.dirname(filePath);
44-
43+
const logDirectory = path.dirname(logFilePath);
4544
shell.openPath(logDirectory);
4645
}

0 commit comments

Comments
 (0)