From 04e8b57b09999469ee1f6f779306148eb8be0136 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Fri, 27 Sep 2019 16:12:16 +0200 Subject: [PATCH 1/2] check location for static analysis --- src/app/tabs/staticanalysis/staticAnalysisView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/staticanalysis/staticAnalysisView.js b/src/app/tabs/staticanalysis/staticAnalysisView.js index 91846f1d04..9ad4627207 100644 --- a/src/app/tabs/staticanalysis/staticAnalysisView.js +++ b/src/app/tabs/staticanalysis/staticAnalysisView.js @@ -104,7 +104,7 @@ staticAnalysisView.prototype.run = function () { results.map(function (result, i) { result.report.map(function (item, i) { var location = '' - if (item.location !== undefined) { + if (!item.location) { var split = item.location.split(':') var file = split[2] location = { From c3cd3cce0427ecc909288cfa64e7631da8e49299 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Fri, 27 Sep 2019 16:13:54 +0200 Subject: [PATCH 2/2] remove ! --- src/app/tabs/staticanalysis/staticAnalysisView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tabs/staticanalysis/staticAnalysisView.js b/src/app/tabs/staticanalysis/staticAnalysisView.js index 9ad4627207..5c1a6e3a50 100644 --- a/src/app/tabs/staticanalysis/staticAnalysisView.js +++ b/src/app/tabs/staticanalysis/staticAnalysisView.js @@ -104,7 +104,7 @@ staticAnalysisView.prototype.run = function () { results.map(function (result, i) { result.report.map(function (item, i) { var location = '' - if (!item.location) { + if (item.location) { var split = item.location.split(':') var file = split[2] location = {