Skip to content

Commit fe3ea93

Browse files
feat: add default area feature
1 parent d4bf21a commit fe3ea93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28166,7 +28166,7 @@ class Issue {
2816628166
potentialAreas = this.scoreArea(content, potentialAreas, this.bodyValue);
2816728167
});
2816828168
}
28169-
if (potentialAreas)
28169+
if (potentialAreas.size === 0)
2817028170
console.log("Area scores: ", ...potentialAreas);
2817128171
const winningArea = this.decideWinner(potentialAreas);
2817228172
if (winningArea)

src/issue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Issue {
6666
});
6767
}
6868

69-
if(potentialAreas) console.log("Area scores: ", ...potentialAreas);
69+
if(potentialAreas.size === 0) console.log("Area scores: ", ...potentialAreas);
7070

7171
const winningArea = this.decideWinner(potentialAreas);
7272
if(winningArea) console.log("Winning area: " + winningArea);

0 commit comments

Comments
 (0)