Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit bec7fc7

Browse files
authored
Merge pull request #24 from datreeio/fix-score
fix: fixed score for unauthenticated users
2 parents 7be387c + c255288 commit bec7fc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli-renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class Renderer {
9696
let calculatedScore
9797
if (Object.keys(weights).length > 0)
9898
calculatedScore = score.calculatePackageScore(pkgData, weights, true)
99-
else calculatedScore = pkgData.source.score.final
99+
else calculatedScore = pkgData.score.final
100100
return (Number(calculatedScore) * 100).toFixed()
101101
}
102102

0 commit comments

Comments
 (0)