1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Remove unnecesary check

This commit is contained in:
David Baker
2017-03-01 16:33:55 +00:00
parent 9480447637
commit d435192e22

View File

@@ -265,10 +265,6 @@ InteractiveAuth.prototype = {
if (!nextStage) { if (!nextStage) {
throw new Error("No incomplete flows from the server"); throw new Error("No incomplete flows from the server");
} }
if (nextStage == this._currentStage) {
// we've already started: don't re-start it
return;
}
this._currentStage = nextStage; this._currentStage = nextStage;
if (this._data.errcode || this._data.error) { if (this._data.errcode || this._data.error) {