Explorar el Código

Removed arrow fn return operator.

master
Kalimuthu Selvaraj hace 4 años
padre
commit
476e2ebaaf
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      index.js

+ 2
- 2
index.js Ver fichero

@@ -27,7 +27,7 @@ function fileExist(file) {
});
}

const getFileThatExist = async (...files) => {
const getFileThatExist = async function(...files) {
for (const file of files) {
if (file && await fileExist(file) === true) {
return file;
@@ -36,7 +36,7 @@ const getFileThatExist = async (...files) => {
return false;
}

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


Cargando…
Cancelar
Guardar