pgAdmin 4 commit: Replace if-then-else statement by a single return sta - Mailing list pgadmin-hackers

From Akshay Joshi
Subject pgAdmin 4 commit: Replace if-then-else statement by a single return sta
Date
Msg-id E1jls5h-0008Gf-RA@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Replace if-then-else statement by a single return statement, issue reported by SonarQube.

Branch
------
master

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

Modified Files
--------------
.../index_constraint/static/js/primary_key.js      |  3 +--
.../static/js/unique_constraint.js                 |  3 +--
.../schemas/tables/indexes/static/js/index.js      | 24 ++++------------------
.../tables/partitions/static/js/partition.js       | 12 ++---------
.../databases/schemas/types/static/js/type.js      |  6 +-----
.../databases/schemas/views/static/js/mview.js     |  3 +--
6 files changed, 10 insertions(+), 41 deletions(-)


pgadmin-hackers by date:

Previous
From: Satish V
Date:
Subject: Re: Re-[Sonarqube]- Clumsy code
Next
From: Akshay Joshi
Date:
Subject: Re: [pgAdmin4][Patch] - Issue fixes reported by SonarQube - 4 (RuleComma operator should not be used)