mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed following SonarQube issues:
- Refactor functions to not always return the same value. - Rename "cls" to "self" or add the missing "self" parameter. - Remove useless assignment to variables.
This commit is contained in:
committed by
Akshay Joshi
parent
dd7eb54e90
commit
56cf64ad22
@@ -320,7 +320,7 @@ define('pgadmin.preferences', [
|
||||
switch (eventName) {
|
||||
case 'selected':
|
||||
if (!d)
|
||||
return true;
|
||||
break;
|
||||
|
||||
if (d.preferences) {
|
||||
/*
|
||||
@@ -330,14 +330,14 @@ define('pgadmin.preferences', [
|
||||
|
||||
renderPreferencePanel(d.preferences);
|
||||
|
||||
return true;
|
||||
break;
|
||||
} else {
|
||||
selectFirstCategory(api, item);
|
||||
}
|
||||
break;
|
||||
case 'added':
|
||||
if (!d)
|
||||
return true;
|
||||
break;
|
||||
|
||||
// We will add the preferences in to the preferences data
|
||||
// collection.
|
||||
|
||||
Reference in New Issue
Block a user