comment out unused function to appease linter
This commit is contained in:
parent
5ac0e6ba07
commit
b90ca50e1d
1 changed files with 18 additions and 18 deletions
|
@ -79,22 +79,22 @@ export async function startAnyRegistrationFlow(options) {
|
||||||
//}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function _getRegistrationFlows() {
|
// async function _getRegistrationFlows() {
|
||||||
try {
|
// try {
|
||||||
await MatrixClientPeg.get().register(
|
// await MatrixClientPeg.get().register(
|
||||||
null,
|
// null,
|
||||||
null,
|
// null,
|
||||||
undefined,
|
// undefined,
|
||||||
{},
|
// {},
|
||||||
{},
|
// {},
|
||||||
);
|
// );
|
||||||
console.log("Register request succeeded when it should have returned 401!");
|
// console.log("Register request succeeded when it should have returned 401!");
|
||||||
} catch (e) {
|
// } catch (e) {
|
||||||
if (e.httpStatus === 401) {
|
// if (e.httpStatus === 401) {
|
||||||
return e.data.flows;
|
// return e.data.flows;
|
||||||
}
|
// }
|
||||||
throw e;
|
// throw e;
|
||||||
}
|
// }
|
||||||
throw new Error("Register request succeeded when it should have returned 401!");
|
// throw new Error("Register request succeeded when it should have returned 401!");
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue