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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user