mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-12 09:57:46 +00:00
xo: Fix unicorn/prefer-ternary, I guess.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
import electron from 'electron';
|
||||
import fs from 'fs';
|
||||
|
||||
let app: Electron.App = null;
|
||||
const app = process.type === 'renderer' ? electron.remote.app : electron.app;
|
||||
let setupCompleted = false;
|
||||
if (process.type === 'renderer') {
|
||||
app = electron.remote.app;
|
||||
} else {
|
||||
app = electron.app;
|
||||
}
|
||||
|
||||
const zulipDir = app.getPath('userData');
|
||||
const logDir = `${zulipDir}/Logs/`;
|
||||
|
||||
Reference in New Issue
Block a user