mirror of
https://github.com/Lissy93/web-check.git
synced 2025-02-14 01:19:29 +01:00
Sort openPorts and failedPorts before returning
This commit is contained in:
parent
fd49c488b1
commit
b55a1cc1b3
@ -72,7 +72,11 @@ const handler = async (url, event, context) => {
|
|||||||
if(timeoutReached){
|
if(timeoutReached){
|
||||||
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…
Reference in New Issue
Block a user