mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix lint
This commit is contained in:
parent
181c1d28fc
commit
39ae896675
@ -1,6 +1,7 @@
|
||||
import { execSync } from 'node:child_process'
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import AdmZip from 'adm-zip'
|
||||
import { getLogger } from 'log4js'
|
||||
import { exportCommunities } from '../client/GradidoNode/communities'
|
||||
import { GradidoNodeProcess } from '../client/GradidoNode/GradidoNodeProcess'
|
||||
@ -14,7 +15,6 @@ import {
|
||||
import { checkFileExist, checkPathExist } from '../utils/filesystem'
|
||||
import { isPortOpen } from '../utils/network'
|
||||
import { AppContextClients } from './appContext'
|
||||
import AdmZip from 'adm-zip'
|
||||
|
||||
const logger = getLogger(`${LOG4JS_BASE_CATEGORY}.bootstrap.initGradidoNode`)
|
||||
|
||||
|
||||
@ -8,8 +8,8 @@ export function checkFileExist(filePath: string): boolean {
|
||||
try {
|
||||
fs.accessSync(filePath, fs.constants.R_OK | fs.constants.W_OK)
|
||||
return true
|
||||
} catch (err) {
|
||||
// logger.debug(`file ${filePath} does not exist: ${err}`)
|
||||
} catch (_err) {
|
||||
// logger.debug(`file ${filePath} does not exist: ${_err}`)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user