Bug 1291855 - Enable the no-else-return rule for eslint. r=Felipe,kmag,mossop

MozReview-Commit-ID: DYOmE6xwMJh
This commit is contained in:
Jared Wein
2016-08-03 18:54:59 -04:00
parent 37120a6f50
commit ebf1ccbe46
73 changed files with 343 additions and 482 deletions

View File

@@ -96,20 +96,18 @@ var security = {
}
return retval;
} else {
return {
hostName : hostName,
cAName : "",
encryptionAlgorithm : "",
encryptionStrength : 0,
version: "",
isBroken : isBroken,
isMixed : isMixed,
isEV : isEV,
cert : null
};
}
return {
hostName : hostName,
cAName : "",
encryptionAlgorithm : "",
encryptionStrength : 0,
version: "",
isBroken : isBroken,
isMixed : isMixed,
isEV : isEV,
cert : null
};
},
// Find the secureBrowserUI object (if present)
@@ -178,9 +176,7 @@ function securityOnLoad(uri, windowInfo) {
document.getElementById("securityTab").hidden = true;
return;
}
else {
document.getElementById("securityTab").hidden = false;
}
document.getElementById("securityTab").hidden = false;
const pageInfoBundle = document.getElementById("pageinfobundle");