mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed Cognitive Complexity code smell reproted by SonarQube.
This commit is contained in:
committed by
Akshay Joshi
parent
2ec8051303
commit
1ab257d512
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user