Thread: pgAdmin 4 commit: Fixed issue related to reducing the if-else statement

pgAdmin 4 commit: Fixed issue related to reducing the if-else statement

From
Akshay Joshi
Date:
Fixed issue related to reducing the if-else statement to single return expression. Reported by SonarQube.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=daad16ea93c778cd28d5df6c2ce48c0374448304
Author: Satish V <satish.v@enterprisedb.com>

Modified Files
--------------
.../static/js/unique_constraint.js                 |  6 +---
.../schemas/tables/indexes/static/js/index.js      |  6 +---
.../tables/partitions/static/js/partition.js       | 22 +++++---------
.../schemas/tables/rules/static/js/rule.js         | 24 +++------------
.../databases/schemas/tables/static/js/table.js    | 22 +++++---------
.../schemas/tables/triggers/static/js/trigger.js   | 35 +++++++---------------
.../servers/databases/static/js/database.js        |  3 +-
.../user_management/static/js/user_management.js   | 30 ++++---------------
8 files changed, 36 insertions(+), 112 deletions(-)