Parcourir la source

changed to arrow fn and updated travis config.

master
Kalimuthu Selvaraj il y a 4 ans
Parent
révision
c9edae7101
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1
    1
      .travis.yml
  2. 2
    2
      index.js

+ 1
- 1
.travis.yml Voir le fichier

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

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

install:
- npm install

+ 2
- 2
index.js Voir le fichier

@@ -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));
}


Chargement…
Annuler
Enregistrer