Skip to content

Commit

Permalink
refactor: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Mar 24, 2022
1 parent 4769045 commit 996f6a7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ function modifyFileText(
*/
function rimraf(dir_path: string) {
if (fs.existsSync(dir_path)) {
fs.readdirSync(dir_path).forEach(function (entry) {
var entry_path = path.join(dir_path, entry)
fs.readdirSync(dir_path).forEach((entry) => {
const entry_path = path.join(dir_path, entry)
if (fs.lstatSync(entry_path).isDirectory()) {
rimraf(entry_path)
} else {
Expand Down

0 comments on commit 996f6a7

Please sign in to comment.