Skip to content

Commit 1a09e48

Browse files
committed
fix file path
1 parent 507e089 commit 1a09e48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ module.exports.analyze = (source) => {
3636

3737
if (Array.isArray(source)) {
3838
source.forEach((filePath) => {
39-
let fullPath = path.resolve(__dirname, filePath)
40-
let content = read.sync(fullPath, 'utf8')
39+
// let fullPath = path.resolve(__dirname, filePath)
40+
let content = read.sync(filePath, 'utf8')
4141
result = escomplex.analyse(content)
4242
report = sanitize(path.basename(filePath), filePath, result)
4343
reports.push(report)

0 commit comments

Comments
 (0)