1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-23 05:35:47 +01:00

Replace calls to octal() with octal integer literals.

This commit is contained in:
Doug Kearns
2014-06-30 19:24:10 +10:00
parent 2f39d0bb87
commit 007449a2e1
6 changed files with 7 additions and 7 deletions

View File

@@ -747,7 +747,7 @@ var Buffer = Module("Buffer", {
try {
if (!file.exists())
file.create(File.NORMAL_FILE_TYPE, octal(644));
file.create(File.NORMAL_FILE_TYPE, 0o644);
}
catch (e) {
util.assert(false, _("save.invalidDestination", e.name));
@@ -784,7 +784,7 @@ var Buffer = Module("Buffer", {
let privacy = sanitizer.getContext(params.context || this.win);
let file = File(params.file);
if (!file.exists())
file.create(Ci.nsIFile.NORMAL_FILE_TYPE, octal(666));
file.create(Ci.nsIFile.NORMAL_FILE_TYPE, 0o666);
let downloadListener = new window.DownloadListener(window,
services.Transfer(params.uri, file.URI, "", null, null, null,