瀏覽代碼

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…
取消
儲存