diff --git a/mobile/android/components/PromptService.js b/mobile/android/components/PromptService.js index 99e6f3d32f7f..798cc5f3769c 100644 --- a/mobile/android/components/PromptService.js +++ b/mobile/android/components/PromptService.js @@ -394,11 +394,12 @@ InternalPrompt.prototype = { [checkMsg, check] = PromptUtils.getUsernameAndPassword(foundLogins, aUser, aPass); } + // (eslint-disable: see bug 1177904) let ok = false; if (aUser) - ok = this.nsIPrompt_promptUsernameAndPassword(aTitle, aText, aUser, aPass, checkMsg, check); + ok = this.nsIPrompt_promptUsernameAndPassword(aTitle, aText, aUser, aPass, checkMsg, check); // eslint-disable-line no-undef else - ok = this.nsIPrompt_promptPassword(aTitle, aText, aPass, checkMsg, check); + ok = this.nsIPrompt_promptPassword(aTitle, aText, aPass, checkMsg, check); // eslint-disable-line no-undef if (ok && canSave && check.value) PromptUtils.savePassword(hostname, realm, aUser, aPass);