Fix interactive-auth.js lint

This commit is contained in:
Marcel
2020-04-07 13:26:27 +02:00
parent 9faeac4c83
commit bf6d1f6555
+2 -1
View File
@@ -328,7 +328,8 @@ InteractiveAuth.prototype = {
} catch (error) {
// sometimes UI auth errors don't come with flows
const errorFlows = error.data ? error.data.flows : null;
const haveFlows = Boolean(this._data && this._data.flows) || Boolean(errorFlows);
const haveFlows = Boolean(this._data &&
this._data.flows) || Boolean(errorFlows);
if (error.httpStatus !== 401 || !error.data || !haveFlows) {
// doesn't look like an interactive-auth failure.
if (!background) {