Skip to content

Commit

Permalink
some easy lgtm fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
awick committed Sep 11, 2020
1 parent 78e3a0a commit d844289
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion viewer/pcap.js
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,6 @@ exports.reassemble_tcp = function (packets, numPackets, skey, cb) {
packets2.push(packets[i]);
}
packets = packets2;
packets2 = [];

if (packets.length === 0) {
return cb(null, packets);
Expand Down
2 changes: 1 addition & 1 deletion viewer/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9011,7 +9011,7 @@ app.post('/upload', [checkCookieToken, multer({ dest: '/tmp', limits: internals.
res.status(500);
res.write('<b>Upload command failed:</b><br>');
}
res.write(cmd);
res.write(safeStr(cmd));
res.write('<br>');
res.write('<pre>');
res.write(stdout);
Expand Down
3 changes: 1 addition & 2 deletions viewer/vueapp/src/components/spiview/Spiview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1082,8 +1082,7 @@ export default {
if (this.categoryObjects.hasOwnProperty(key)) {
let category = this.categoryObjects[key];
let fields = category.fields;
fields = this.sortFields(category.fields);
let fields = this.sortFields(category.fields);
Vue.set(category, 'filteredFields', fields);
if (localStorage && localStorage['spiview-collapsible']) {
Expand Down
6 changes: 1 addition & 5 deletions wiseService/wiseSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,7 @@ WISESource.combineResults = function (results) {
return buf;
};
// ----------------------------------------------------------------------------
WISESource.result2Str = function (result, indent) {
if (!indent) {
indent = '';
}

WISESource.result2Str = function (result) {
let collection = [];
var offset = 1;
for (var i = 0; i < result[0]; i++) {
Expand Down

0 comments on commit d844289

Please sign in to comment.