Skip to content

Commit

Permalink
Fixed potential bug in index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
simwai committed Jul 2, 2023
1 parent ae78e41 commit 30b39bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const analyzeSentiment = async (articleTitle) => {
return "";
}

if (config.SENTIMENT_ANALYSIS_ALGORITHM == "vader") {
if (config.SENTIMENT_ANALYSIS_ALGORITHM === "vader") {
let vaderResult = SentimentIntensityAnalyzer.polarity_scores(articleTitle);

// Sort object by value descending
Expand Down

0 comments on commit 30b39bf

Please sign in to comment.