mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 08:27:58 +01:00
Miscellaneous formatting fixes.
--HG-- extra : rebase_source : ac84b34db15b95fd5a6ad597a1420ffc4cb35414
This commit is contained in:
@@ -1035,12 +1035,12 @@ const Buffer = Module("buffer", {
|
||||
return null;
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
destroy: function () {
|
||||
if (this.docShell)
|
||||
this.docShell.destroy();
|
||||
},
|
||||
|
||||
onStateChange: function(progress, request, flag, status) {
|
||||
onStateChange: function (progress, request, flag, status) {
|
||||
// once it's done loading...
|
||||
if ((flag & Ci.nsIWebProgressListener.STATE_STOP) && status == 0) {
|
||||
try {
|
||||
@@ -1050,7 +1050,8 @@ const Buffer = Module("buffer", {
|
||||
}
|
||||
try {
|
||||
this.callback(this.file);
|
||||
} finally {
|
||||
}
|
||||
finally {
|
||||
this.file.remove(false);
|
||||
}
|
||||
}
|
||||
@@ -1352,7 +1353,8 @@ const Buffer = Module("buffer", {
|
||||
function (tmpFile) {
|
||||
try {
|
||||
file.write(tmpFile.read(), ">>");
|
||||
} catch (e) {
|
||||
}
|
||||
catch (e) {
|
||||
dactyl.echoerr(file.path.quote() + ": E212: Can't open file for writing");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user