Fix coding style in extensions/firefox/bootstrap.js
This commit is contained in:
parent
597d388930
commit
2b5fb59b67
9
extensions/firefox/bootstrap.js
vendored
9
extensions/firefox/bootstrap.js
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user