Skip to content

Commit 4e822aa

Browse files
committed
fix sonar
1 parent c1206e5 commit 4e822aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/leaflet/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ export var WebMap = L.LayerGroup.extend({
10581058
}
10591059
},
10601060
getAttributesObjFromTable: function (cols, colTitles) {
1061-
if (cols.length < 0 || colTitles.length < 0) {
1061+
if (cols.length === 0 || colTitles.length === 0) {
10621062
return;
10631063
}
10641064
var attrArr = [];

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ export class WebMap extends ol.Observable {
10381038
}
10391039

10401040
getAttributesObjFromTable(cols, colTitles) {
1041-
if (cols.length < 0 || colTitles.length < 0) {
1041+
if (cols.length === 0 || colTitles.length === 0) {
10421042
return;
10431043
}
10441044
var attrArr = [];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy