Explorar el Código

changed to arrow fn and updated travis config.

master
Kalimuthu Selvaraj hace 4 años
padre
commit
c9edae7101
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1
    1
      .travis.yml
  2. 2
    2
      index.js

+ 1
- 1
.travis.yml Ver fichero

@@ -5,7 +5,7 @@ before_script:
language: node_js

node_js:
- lts/*
- "lts/*"

install:
- npm install

+ 2
- 2
index.js Ver fichero

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

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

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


Cargando…
Cancelar
Guardar