Skip to content

Commit

Permalink
Update client/src/lib/attempt-result.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
maxidragon and jonatanklosko authored Oct 4, 2024
1 parent 5f0c52c commit 77bb650
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/lib/attempt-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,7 @@ export function meetsCutoff(attemptResults, cutoff) {
.some((attempt) => attempt > 0 && attempt < attemptResult);
}

/**
* Checks if the given attempt results contain a DNS followed by a valid result.
*/
export function checkForDnsFollowedByValidResult(attemptResults) {
function checkForDnsFollowedByValidResult(attemptResults) {
const dnsIndex = attemptResults.findIndex((attempt) => attempt === DNS_VALUE);
if (dnsIndex === -1) return false;
return attemptResults.some(
Expand Down

0 comments on commit 77bb650

Please sign in to comment.