remove unused line
This commit is contained in:
@@ -35,7 +35,6 @@ async function tryCandidate(candidate) {
|
|||||||
headers: {'Content-Type': 'application/json'},
|
headers: {'Content-Type': 'application/json'},
|
||||||
body: JSON.stringify(body)
|
body: JSON.stringify(body)
|
||||||
});
|
});
|
||||||
|
|
||||||
if (resp.status === 200) {
|
if (resp.status === 200) {
|
||||||
console.log(`Found: ${candidate}`);
|
console.log(`Found: ${candidate}`);
|
||||||
found = true;
|
found = true;
|
||||||
@@ -43,7 +42,6 @@ async function tryCandidate(candidate) {
|
|||||||
} else if (resp.status === 401) {
|
} else if (resp.status === 401) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// unexpected response
|
|
||||||
const text = await resp.text().catch(() => '');
|
const text = await resp.text().catch(() => '');
|
||||||
console.warn('Unexpected response', resp.status, text);
|
console.warn('Unexpected response', resp.status, text);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user