refactor: use const function

This commit is contained in:
curbengh 2019-09-15 16:16:53 +01:00
parent 9cb977e2d2
commit 36bca1b939
No known key found for this signature in database
GPG Key ID: 21EA847C35D6E034
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ const zlib = require('zlib')
const br = require('iltorb') const br = require('iltorb')
const micromatch = require('micromatch') const micromatch = require('micromatch')
function isMatch (path, patterns, options) { const isMatch = (path, patterns, options) => {
if (path && patterns && patterns.length) { if (path && patterns && patterns.length) {
return micromatch.isMatch(path, patterns, options) return micromatch.isMatch(path, patterns, options)
} else { } else {