Skip to content

Commit dc91e62

Browse files
committed
replaced if with tertiary
1 parent 71349a7 commit dc91e62

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • services/tone_analyzer

services/tone_analyzer/v3.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ module.exports = function (RED) {
112112
var options = {
113113
'text': msg.payload,
114114
'sentences': msg.sentences || config.sentences,
115-
'isHTML': msg.contentType || config.contentType
115+
'isHTML': msg.contentType || config.contentType,
116+
'tones' : (tones === 'all' ? '' : tones)
116117
};
117118

118-
if (tones !== 'all') {
119-
options.tones = tones;
120-
}
119+
//if (tones !== 'all') {
120+
// options.tones = tones;
121+
//}
121122

122123
return options;
123124
}

0 commit comments

Comments
 (0)