From 763059641d1b209d1b17752f2722a845d44a1179 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 30 Dec 2008 22:41:34 -0500 Subject: [PATCH] Fix formatting. Ted: Please try to format your code consistently with the rest of the codebase. --- common/content/io.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/common/content/io.js b/common/content/io.js index e0aead85..0e7ff6bb 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -924,13 +924,15 @@ lookup: }; //}}} IO.__defineGetter__("runtimePath", function () { - let getrtp = services.get("environment").get(config.name.toUpperCase() + "_RUNTIME"); - if( ! getrtp ) - { - getrtp = "~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase(); - services.get("environment").set(config.name.toUpperCase() + "_RUNTIME", getrtp); - } - return getrtp; }); + const rtpvar = config.name.toUpperCase() + "_RUNTIME"; + let rtp = services.get("environment").get(rtpvar); + if (!rtp) + { + rtp = "~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase(); + services.get("environment").set(rtpvar, rtp); + } + return rtp; +}); IO.expandPath = function (path, relative) {