Fix coding style in extensions/firefox/bootstrap.js

This commit is contained in:
Jonas Jenwald 2014-03-22 21:48:00 +01:00
parent 597d388930
commit 2b5fb59b67

View File

@ -51,8 +51,9 @@ function setStringPref(pref, value) {
}
function log(str) {
if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false))
if (!getBoolPref(EXT_PREFIX + '.pdfBugEnabled', false)) {
return;
}
dump(str + '\n');
}
@ -101,8 +102,9 @@ Factory.prototype = {
// nsIFactory
createInstance: function createInstance(aOuter, iid) {
if (aOuter !== null)
if (aOuter !== null) {
throw Cr.NS_ERROR_NO_AGGREGATION;
}
return (new (this._targetConstructor)()).QueryInterface(iid);
},
@ -150,8 +152,9 @@ function startup(aData, aReason) {
}
function shutdown(aData, aReason) {
if (aReason == APP_SHUTDOWN)
if (aReason == APP_SHUTDOWN) {
return;
}
var ioService = Services.io;
var resProt = ioService.getProtocolHandler('resource')
.QueryInterface(Ci.nsIResProtocolHandler);