Fixed SonarQube issues with the tag unused. All the unused variables, assignments, code comments are fixed.

This commit is contained in:
Aditya Toshniwal
2020-06-25 11:09:43 +05:30
committed by Akshay Joshi
parent a1fd9ea3ce
commit d3b3d07f2e
19 changed files with 40 additions and 64 deletions

View File

@@ -820,7 +820,6 @@ define([
Privileges array is generated based on
the type of nodes selected.
*/
var privModel = self.privModel;
var PrivModel = pgNode.Model.extend({
defaults: {
acl: undefined,
@@ -849,8 +848,8 @@ define([
present in object privileges array(object_priv)
*/
var data = {};
if (privModel) {
data = privModel.toJSON();
if (self.privModel) {
data = self.privModel.toJSON();
var rolePrivs = data['acl'];
if (!_.isUndefined(rolePrivs) && rolePrivs.length > 0) {
for (var idx in rolePrivs) {
@@ -875,7 +874,7 @@ define([
}
// Instantiate privModel
privModel = self.privModel = new PrivModel(data, {
self.privModel = new PrivModel(data, {
node_info: self.info,
});

View File

@@ -490,7 +490,7 @@ export default class SchemaDiffUI {
var self = this,
node_type = data.type,
source_oid = data.oid,
target_oid = data.oid;
target_oid;
self.model.set({
'source_ddl': undefined,

View File

@@ -338,7 +338,6 @@ def poll(trans_id):
primary_keys = None
types = {}
client_primary_key = None
rset = None
has_oids = False
oids = None
additional_messages = None