Skip to content

Commit a8ab6db

Browse files
committed
fixed codeacy flagged issues
1 parent f6c223b commit a8ab6db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • services/language_translation

services/language_translation/v2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ module.exports = function (RED) {
104104
// have been provided.
105105
this.on('input', function (msg) {
106106

107+
var message = '';
108+
107109
// The dynamic nature of this node has caused problems with the password field. it is
108110
// hidden but not a credential. If it is treated as a credential, it gets lost when there
109111
// is a request to refresh the model list.
@@ -293,8 +295,6 @@ module.exports = function (RED) {
293295
// Now that the do functions have been defined, can now determine what action this node
294296
// is configured for.
295297

296-
var message = '';
297-
298298
if (!msg.payload) {
299299
message = 'Missing property: msg.payload';
300300
node.error(message, msg);

0 commit comments

Comments
 (0)