Skip to content

Commit

Permalink
fix(cli): lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Jul 29, 2019
1 parent 20fb4af commit 075d54e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/s2s-cli/src/utils/some.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export default function(
patterns: string | Array<string>
) {
list = [].concat(list)
for (let i = 0; i < list.length; i++) {
if (micromatch(list[i], patterns).length === 1) {
for (const element of list) {
if (micromatch(element, patterns).length === 1) {
return true
}
}
Expand Down

0 comments on commit 075d54e

Please sign in to comment.