mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user