Skip to content

Commit 7925894

Browse files
committed
complexity too high
1 parent 6e72697 commit 7925894

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • services/tone_analyzer

services/tone_analyzer/v3.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ module.exports = function (RED) {
5656
var sentences = msg.sentences || config.sentences;
5757
var contentType = msg.contentType || config.contentType
5858

59-
callToneAnalyzer(username, password, msg, tones, sentences, contentType);
60-
});
61-
62-
var callToneAnalyzer = function(username, password, msg, tones, sentences, contentType) {
6359
var watson = require('watson-developer-cloud');
6460

6561
var tone_analyzer = watson.tone_analyzer({
@@ -106,9 +102,8 @@ module.exports = function (RED) {
106102
node.status({fill:'red', shape:'dot', text:message});
107103
node.error(message, msg);
108104
}
109-
}
105+
});
110106
}
111-
112107
RED.nodes.registerType('watson-tone-analyzer-v3', Node, {
113108
credentials: {
114109
username: {type:'text'},

0 commit comments

Comments
 (0)