Browse Source

Removed arrow fn return operator.

master
Kalimuthu Selvaraj 4 years ago
parent
commit
476e2ebaaf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      index.js

+ 2
- 2
index.js View File

}); });
} }


const getFileThatExist = async (...files) => {
const getFileThatExist = async function(...files) {
for (const file of files) { for (const file of files) {
if (file && await fileExist(file) === true) { if (file && await fileExist(file) === true) {
return file; return file;
return false; return false;
} }


const filesExist = (...files) => {
const filesExist = function(...files) {
return Promise.resolve(!!getFileThatExist(...files)); return Promise.resolve(!!getFileThatExist(...files));
} }



Loading…
Cancel
Save