Skip to content

Commit

Permalink
remove unnecessary else
Browse files Browse the repository at this point in the history
Video-Doc-Id[b0]: babel/babel/1
  • Loading branch information
vedantroy authored and JLHwung committed Nov 17, 2021
1 parent 344860b commit 32cf26a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/babel-cli/src/babel/util.ts
Expand Up @@ -192,11 +192,9 @@ export function onDependencyFileChanged(
for (const dependent of externalFileDeps.get(filePath)) {
await callback(dependent);
}
await callback(filePath);
}
} else {
await callback(filePath);
}
return await callback(filePath);
}
["add", "change"].forEach(type => getWatcher().on(type, onFileChanged));
}
Expand Down

0 comments on commit 32cf26a

Please sign in to comment.