mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1248097, part 1 - Fix indentation in SpecialPowersObserver.jsm. r=jmaher
This commit is contained in:
parent
267abe3945
commit
b7841a51a8
@ -257,12 +257,12 @@ SpecialPowersObserver.prototype.receiveMessage = function(aMessage) {
|
||||
let createdFiles = this._createdFiles;
|
||||
try {
|
||||
aMessage.data.forEach(function(request) {
|
||||
let testFile = Services.dirsvc.get("ProfD", Ci.nsIFile);
|
||||
testFile.append(request.name);
|
||||
let outStream = Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream);
|
||||
outStream.init(testFile, 0x02 | 0x08 | 0x20, // PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE
|
||||
0666, 0);
|
||||
if (request.data) {
|
||||
let testFile = Services.dirsvc.get("ProfD", Ci.nsIFile);
|
||||
testFile.append(request.name);
|
||||
let outStream = Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream);
|
||||
outStream.init(testFile, 0x02 | 0x08 | 0x20, // PR_WRONLY | PR_CREATE_FILE | PR_TRUNCATE
|
||||
0666, 0);
|
||||
if (request.data) {
|
||||
outStream.write(request.data, request.data.length);
|
||||
outStream.close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user