Fixed Cognitive Complexity code smell reproted by SonarQube.

This commit is contained in:
Nikhil Mohite
2020-07-03 11:15:41 +05:30
committed by Akshay Joshi
parent 2ec8051303
commit 1ab257d512
6 changed files with 151 additions and 112 deletions

View File

@@ -1357,8 +1357,8 @@ define('pgadmin.browser.node', [
}.bind(panel),
informBeforeAttributeChange = function(ok_callback) {
var j = this.$container.find('.obj_properties').first();
view = j && j.data('obj-view');
var obj = this.$container.find('.obj_properties').first();
view = obj && obj .data('obj-view');
if (view && view.model && !_.isUndefined(view.model.inform_text) && !_.isNull(view.model.inform_text)) {
Alertify.alert(