Fixed code smell 'Unexpected empty arrow function' reported by SonarQube.

This commit is contained in:
Akshay Joshi
2022-01-12 18:59:21 +05:30
parent 4e414f57e6
commit 3f7e921cce
18 changed files with 41 additions and 41 deletions

View File

@@ -856,7 +856,7 @@ define([
'data': JSON.stringify(sqlite_func_args_list),
},
})
.done(function() {})
.done(function() {/*This is intentional (SonarQube)*/})
.fail(function() {
Notify.alert(
gettext('Debugger Error'),
@@ -884,7 +884,7 @@ define([
'data': JSON.stringify(args_value_list),
},
})
.done(function() {})
.done(function() {/*This is intentional (SonarQube)*/})
.fail(function(er) {
Notify.alert(
gettext('Debugger Listener Startup Error'),
@@ -906,7 +906,7 @@ define([
'data': JSON.stringify(sqlite_func_args_list),
},
})
.done(function() {})
.done(function() {/*This is intentional (SonarQube)*/})
.fail(function() {
Notify.alert(
gettext('Debugger Error'),

View File

@@ -33,7 +33,7 @@ define([
if (pgTools.DirectDebug)
return pgTools.DirectDebug;
var controller = new(function() {});
var controller = new(function() {/*This is intentional (SonarQube)*/});
_.extend(
controller, Backbone.Events, {
@@ -1491,7 +1491,7 @@ define([
Function is responsible to create the new wcDocker instance for debugger and
initialize the debugger panel inside the docker instance.
*/
var DirectDebug = function() {};
var DirectDebug = function() {/*This is intentional (SonarQube)*/};
_.extend(DirectDebug.prototype, {
/* We should get the transaction id from the server during initialization here */