mirror of https://github.com/curbengh/hexo-yam
refactor: use const function
This commit is contained in:
parent
9cb977e2d2
commit
36bca1b939
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue