Skip to content

Commit

Permalink
moar
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Sep 7, 2024
1 parent e59f897 commit 81f79c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tools/adb-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -2057,7 +2057,7 @@ methods.listPorts = async function listPorts(family = '4') {
throw new Error(`Cannot parse the payload of ${sourceProcName}`);
}
// sl local_address rem_address st tx_queue rx_queue tr tm->when retrnsmt uid timeout inode
const colHeaders = lines[0].split(/\s+/);
const colHeaders = lines[0].split(/\s+/).filter(Boolean);
const localAddressCol = colHeaders.findIndex((x) => x === 'local_address');
const stateCol = colHeaders.findIndex((x) => x === 'st');
if (localAddressCol < 0 || stateCol < 0) {
Expand Down

0 comments on commit 81f79c7

Please sign in to comment.