Skip to content

Commit 478e6c6

Browse files
committed
added missing end of line & fixed sonar code smell
1 parent 1e8fea0 commit 478e6c6

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

js/csv-exporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ let CsvExporter = function(flightLog, opts={}) {
4444
return {
4545
dump: dump,
4646
};
47-
};
47+
};

js/gpx-exporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ let GpxExporter = function(flightLog) {
2929
return {
3030
dump: dump,
3131
};
32-
};
32+
};

js/webworkers/csv-export-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ onmessage = function(event) {
4242

4343
postMessage(result);
4444

45-
};
45+
};

js/webworkers/gpx-export-worker.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ onmessage = function (event) {
2222
let trkpts = "";
2323
for (const chunk of event.data.frames) {
2424
for (const frame of chunk) {
25-
if (!frame[latIndex] || !frame[lngIndex]) continue;
25+
if (!frame[latIndex] || !frame[lngIndex]) {
26+
continue;
27+
}
2628
const timeMillis = Math.floor(frame[timeIndex] / 1000);
2729
const lat = frame[latIndex] / 10000000;
2830
const lng = frame[lngIndex] / 10000000;

0 commit comments

Comments
 (0)