Fixed following code smells reported by SonarQube:

1) Remove this redundant jump.
 2) Remove this commented out code.
 3) Variables should not be shadowed.
This commit is contained in:
Akshay Joshi
2022-01-21 18:53:48 +05:30
parent 12d6271b13
commit 343c3ee49c
50 changed files with 130 additions and 161 deletions

View File

@@ -424,10 +424,10 @@ define('pgadmin.node.database', [
function() {
connect_to_database(_model, _data, _tree, _item, _wasConnected);
},
function(error) {
function(fun_error) {
tree.setInode(_item);
tree.addIcon(_item, {icon: 'icon-database-not-connected'});
Notify.pgNotifier(error, xhr, gettext('Connect to database.'));
Notify.pgNotifier(fun_error, xhr, gettext('Connect to database.'));
}
);
} else {