Bug 1590486 - Fix eslint failure. r=eslint-fix

This commit is contained in:
Cosmin Sabou 2019-10-24 06:58:21 +03:00
parent 274e0280b0
commit 23c6504831
2 changed files with 12 additions and 10 deletions

View File

@ -485,14 +485,16 @@ this.FxAccountsWebChannelHelpers.prototype = {
* @param the uid of the account which have been logged out
*/
logout(uid) {
return this._fxAccounts._internal.getUserAccountData(["uid"]).then(userData => {
if (userData && userData.uid === uid) {
// true argument is `localOnly`, because server-side stuff
// has already been taken care of by the content server
return fxAccounts.signOut(true);
}
return null;
});
return this._fxAccounts._internal
.getUserAccountData(["uid"])
.then(userData => {
if (userData && userData.uid === uid) {
// true argument is `localOnly`, because server-side stuff
// has already been taken care of by the content server
return fxAccounts.signOut(true);
}
return null;
});
},
/**

View File

@ -677,7 +677,7 @@ add_task(async function test_helpers_getFxAStatus_extra_engines() {
uid: "uid",
verified: true,
});
}
},
},
},
privateBrowsingUtils: {
@ -714,7 +714,7 @@ add_task(async function test_helpers_getFxaStatus_allowed_signedInUser() {
uid: "uid",
verified: true,
});
}
},
},
},
});