Skip to content

Commit 98dc5b3

Browse files
committed
Combined into one var
1 parent 73eb328 commit 98dc5b3

File tree

1 file changed

+2
-2
lines changed
  • services/conversation

1 file changed

+2
-2
lines changed

services/conversation/v1.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ module.exports = function(RED) {
144144

145145
var userName = sUsername || node.credentials.username,
146146
passWord = sPassword || node.credentials.password,
147-
endpoint = '';
147+
endpoint = '',
148+
optoutLearning = false;
148149

149150
if (!(userName || msg.params.username) ||
150151
!(passWord || msg.params.password)) {
@@ -183,7 +184,6 @@ module.exports = function(RED) {
183184
serviceSettings.url = endpoint;
184185
}
185186

186-
var optoutLearning = false;
187187
if ((msg.params && msg.params['optout_learning'])){
188188
optoutLearning = true;
189189
} else if (config['optout-learning']){

0 commit comments

Comments
 (0)