mirror of
https://github.com/Lissy93/web-check.git
synced 2025-06-20 03:37:41 +02:00
Merge pull request #146 from n0a/patch-3
Sort openPorts and failedPorts before returning
This commit is contained in:
commit
5b71ba96c5
@ -73,6 +73,10 @@ const handler = async (url, event, context) => {
|
|||||||
return errorResponse('The function timed out before completing.');
|
return errorResponse('The function timed out before completing.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sort openPorts and failedPorts before returning
|
||||||
|
openPorts.sort((a, b) => a - b);
|
||||||
|
failedPorts.sort((a, b) => a - b);
|
||||||
|
|
||||||
return { openPorts, failedPorts };
|
return { openPorts, failedPorts };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user