Skip to content

Commit

Permalink
remove istanbul ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 6, 2024
1 parent d233427 commit 435507d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/dirList.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,12 @@ const dirList = {

if (stats.isDirectory()) {
info.totalFolderCount++
// istanbul ignore else, only increment when one level deep
if (filePath.split(path.sep).length === depth + 1) {
info.folderCount++
}
filePath.split(path.sep).length === depth + 1 && info.folderCount++
await dirList._getExtendedInfo(filePath, info)
} else {
info.totalSize += stats.size
info.totalFileCount++
// istanbul ignore else, only increment when one level deep
if (filePath.split(path.sep).length === depth + 1) {
info.fileCount++
}
filePath.split(path.sep).length === depth + 1 && info.fileCount++
info.lastModified = Math.max(info.lastModified, stats.mtimeMs)
}
}
Expand Down

0 comments on commit 435507d

Please sign in to comment.