dix promise

This commit is contained in:
Dragan Filipovic 2023-01-02 01:37:28 +01:00
parent a285ca6ac0
commit 7a4513a7f6
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ const which = require('which');
const nodeRsync = require('rsyncwrapper');
// eslint-disable-next-line no-async-promise-executor
const validateRsync = () => new Promise(async (resolve, reject) => {
const validateRsync = async () => new Promise(async (resolve, reject) => {
const rsyncCli = await which('rsync', { nothrow: true });
execSync('rsync --version', { stdio: 'inherit' });
if (rsyncCli) {