Fixed SonarQube issues.

This commit is contained in:
Akshay Joshi
2022-08-05 18:58:03 +05:30
parent fa6b77b42c
commit d1c94ac73d
7 changed files with 27 additions and 34 deletions

View File

@@ -253,7 +253,7 @@ export class ResultSetUtils {
poll() {
let delay = 1;
var seconds = parseInt((Date.now() - this.startTime.getTime()) / 1000);
let seconds = parseInt((Date.now() - this.startTime.getTime()) / 1000);
// calculate & return fall back polling timeout
if (seconds >= 10 && seconds < 30) {
delay = 500;
@@ -389,7 +389,7 @@ export class ResultSetUtils {
document.body.appendChild(link);
if (getBrowser() === 'IE' && window.navigator.msSaveBlob) {
if (getBrowser() == 'IE' && window.navigator.msSaveBlob) {
// IE10+ : (has Blob, but not a[download] or URL)
window.navigator.msSaveBlob(respBlob, fileName);
} else {
@@ -539,7 +539,7 @@ export class ResultSetUtils {
// Create columns
data.colinfo.forEach(function(c) {
var isPK = false,
let isPK = false,
isEditable = data.can_edit && (!self.isQueryTool || c.is_editable);
// Check whether this column is a primary key