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:
Aditya Toshniwal
2020-07-30 14:04:22 +05:30
committed by Akshay Joshi
parent dd7eb54e90
commit 56cf64ad22
17 changed files with 624 additions and 663 deletions

View File

@@ -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.