pgAdmin 4 commit: Fix following issues reported by SonarQube: - Mailing list pgadmin-hackers

From Akshay Joshi
Subject pgAdmin 4 commit: Fix following issues reported by SonarQube:
Date
Msg-id E1jkn9z-0004qs-6t@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Fix following issues reported by SonarQube:
1) Properties of variables with "null" or "undefined" values should not be accessed
2) Variables should not be self-assigned
3) "in" should not be used with primitive types

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=8ab358ccecc7e8f0e4e4c364eb162368df8b74f2
Author: Khushboo Vashi <khushboo.vashi@enterprisedb.com>

Modified Files
--------------
.../servers/databases/schemas/tables/rules/static/js/rule.js          | 4 ++--
.../server_groups/servers/databases/schemas/views/static/js/mview.js  | 2 +-
web/pgadmin/browser/server_groups/servers/static/js/variable.js       | 2 +-
web/pgadmin/browser/static/js/browser.js                              | 4 ++--
web/pgadmin/browser/static/js/collection.js                           | 2 +-
web/pgadmin/browser/static/js/node.js                                 | 4 ++--
6 files changed, 9 insertions(+), 9 deletions(-)


pgadmin-hackers by date:

Previous
From: Aditya Toshniwal
Date:
Subject: Re: Patch for SonarQube UI fixes.
Next
From: Akshay Joshi
Date:
Subject: Re: Reg - [sonarqube] Refactor this code so that this expression doesnot always evaluate to true