Skip to content

Commit

Permalink
Repair syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-ter-Doest committed Nov 20, 2023
1 parent 14ab3c2 commit 342a202
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/natural/sentiment/SentimentAnalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ class SentimentAnalyzer {
getSentiment (words) {
let score = 0
let negator = 1
DEBUG && let nrHits = 0
if (DEBUG) {
let nrHits = 0
}

words.forEach((token) => {
const lowerCased = token.toLowerCase()
Expand Down

0 comments on commit 342a202

Please sign in to comment.