Skip to content

Commit 86ecc39

Browse files
author
repo-visualizer
committed
don't require root_path
1 parent 8b4ad8b commit 86ecc39

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12826,11 +12826,7 @@ var shouldExcludePath = (path, pathsToIgnore, globsToIgnore) => {
1282612826
};
1282712827

1282812828
// src/process-dir.js
12829-
var processDir = async (rootPath, excludedPaths = [], excludedGlobs = []) => {
12830-
if (!rootPath) {
12831-
console.log("no rootPath specified");
12832-
return;
12833-
}
12829+
var processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) => {
1283412830
const foldersToIgnore = [".git", ...excludedPaths];
1283512831
const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d2) => nodePath.join(rootPath, d2)));
1283612832
const getFileStats = async (path = "") => {

src/process-dir.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ import * as nodePath from 'path';
33
import { shouldExcludePath } from './should-exclude-path';
44

55

6-
export const processDir = async (rootPath, excludedPaths = [], excludedGlobs = []) => {
7-
if (!rootPath) {
8-
console.log("no rootPath specified");
9-
return;
10-
}
11-
6+
export const processDir = async (rootPath = "", excludedPaths = [], excludedGlobs = []) => {
127
const foldersToIgnore = [".git", ...excludedPaths]
138
const fullPathFoldersToIgnore = new Set(foldersToIgnore.map((d) =>
149
nodePath.join(rootPath, d)

0 commit comments

Comments
 (0)