1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

refactor: minor refactor

This commit is contained in:
2023-11-27 18:35:56 +01:00
parent 38b32bfb28
commit 879de91516
3 changed files with 7 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
import { ChildProcess, ChildProcessWithoutNullStreams, fork } from 'child_process';
import { ChildProcess, fork } from 'child_process';
import * as antares from 'common/interfaces/antares';
import * as workers from 'common/interfaces/workers';
import { dialog, ipcMain } from 'electron';
@@ -8,10 +8,10 @@ import * as path from 'path';
import { validateSender } from '../libs/misc/validateSender';
const isDevelopment = process.env.NODE_ENV !== 'production';
const isFlatpak = process.platform === 'linux' && process.env.FLATPAK_ID;
const isFlatpak = process.platform === 'linux' && process.env.DISTRIBUTION === 'flatpak';
export default (connections: {[key: string]: antares.Client}) => {
let exporter: ChildProcessWithoutNullStreams = null;
let exporter: ChildProcess = null;
let importer: ChildProcess = null;
ipcMain.handle('create-schema', async (event, params) => {