Re-[Sonarqube]- Clumsy code

From: Satish V <satish(dot)v(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re-[Sonarqube]- Clumsy code
Date: 2020-06-18 05:56:40
Message-ID: CAOEjfmEv3rry9EQEGx52Yb48O_BZjfyqTjhA87pCP_a68A0y2A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers,

Please find the patch in the attachment which resolves below issue.
1.Replace this if-then-else statement by a single return statement.

Kindy review and share the changes, if required

Thanks,
Sathish V

Attachment Content-Type Size
if_else_reduction.patch application/octet-stream 15.8 KB

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Yogesh Mahajan 2020-06-18 06:40:18 [pgAdmin4][Patch] - Issue fixes reported by SonarQube - 4 (Rule Comma operator should not be used)
Previous Message Akshay Joshi 2020-06-18 05:45:40 Re: [pgAdmin][patch] Sonarqube issues tagged as redundant