Переглянути джерело

changed to arrow fn and updated travis config.

master
Kalimuthu Selvaraj 4 роки тому
джерело
коміт
c9edae7101
2 змінених файлів з 3 додано та 3 видалено
  1. 1
    1
      .travis.yml
  2. 2
    2
      index.js

+ 1
- 1
.travis.yml Переглянути файл

language: node_js language: node_js


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


install: install:
- npm install - npm install

+ 2
- 2
index.js Переглянути файл

}); });
} }


const getFileThatExist = async function(...files) {
const getFileThatExist = async (...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 = function(...files) {
const filesExist = (...files) => {
return Promise.resolve(!!getFileThatExist(...files)); return Promise.resolve(!!getFileThatExist(...files));
} }



Завантаження…
Відмінити
Зберегти