Преглед изворни кода

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 Прегледај датотеку

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

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

install:
- npm install

+ 2
- 2
index.js Прегледај датотеку

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


Loading…
Откажи
Сачувај