File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -184,22 +184,22 @@ module.exports = function(RED) {
184184 }
185185
186186 var optoutLearning = false ;
187- if ( ( msg . params && msg . params [ " optout_learning" ] ) ) {
188- optoutLearning = true ;
187+ if ( ( msg . params && msg . params [ ' optout_learning' ] ) ) {
188+ optoutLearning = true ;
189189 } else if ( config [ 'optout-learning' ] ) {
190- optoutLearning = true ;
190+ optoutLearning = true ;
191191 }
192192
193193 if ( optoutLearning ) {
194- serviceSettings . headers = serviceSettings . headers || { } ;
195- serviceSettings . headers [ 'X-Watson-Learning-Opt-Out' ] = '1' ;
194+ serviceSettings . headers = serviceSettings . headers || { } ;
195+ serviceSettings . headers [ 'X-Watson-Learning-Opt-Out' ] = '1' ;
196196 }
197197
198- if ( config [ 'timeout' ] && config [ 'timeout' ] !== "0" && isFinite ( config [ 'timeout' ] ) ) {
198+ if ( config [ 'timeout' ] && config [ 'timeout' ] !== '0' && isFinite ( config [ 'timeout' ] ) ) {
199199 serviceSettings . timeout = parseInt ( config [ 'timeout' ] ) ;
200200 }
201201
202- if ( msg . params && msg . params . timeout !== "0" && isFinite ( msg . params . timeout ) ) {
202+ if ( msg . params && msg . params . timeout !== '0' && isFinite ( msg . params . timeout ) ) {
203203 serviceSettings . timeout = parseInt ( msg . params . timeout ) ;
204204 }
205205
You can’t perform that action at this time.
0 commit comments