1) Fixed cognitive complexity issues reported by SonarQube.

2) Fixed code smell 'Add a nested comment explaining why this method is
   empty, or complete the implementation'.
This commit is contained in:
Aditya Toshniwal
2020-07-24 11:46:30 +05:30
committed by Akshay Joshi
parent 310450cfa7
commit 505a3ac960
31 changed files with 221 additions and 178 deletions

View File

@@ -19,7 +19,7 @@ from urllib.parse import unquote
from pgadmin.browser.server_groups.servers.utils import parse_priv_to_db
from pgadmin.utils import PgAdminModule
from pgadmin.utils.ajax import make_response as ajax_response, \
make_json_response, internal_server_error
make_json_response, internal_server_error, bad_request
from pgadmin.utils.driver import get_driver
from config import PG_DEFAULT_DRIVER
@@ -144,7 +144,9 @@ def check_precondition(f):
@blueprint.route("/")
@login_required
def index():
pass
return bad_request(
errormsg=gettext("This URL cannot be called directly.")
)
@blueprint.route("/grant_wizard.js")