Skip to content

Commit

Permalink
refactor: minor code refactor (#399)
Browse files Browse the repository at this point in the history
use includes to check for existence
  • Loading branch information
jamesgeorge007 authored and evilebottnawi committed Nov 5, 2019
1 parent c546871 commit 3103940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preProcessPattern.js
Expand Up @@ -98,7 +98,7 @@ export default function preProcessPattern(globalRef, pattern) {

const noStatsHandler = () => {
// If from doesn't appear to be a glob, then log a warning
if (isGlob(pattern.from) || pattern.from.indexOf('*') !== -1) {
if (isGlob(pattern.from) || pattern.from.includes('*')) {
logger.debug(`determined '${pattern.absoluteFrom}' is a glob`);

pattern.fromType = 'glob';
Expand Down

0 comments on commit 3103940

Please sign in to comment.