# HG changeset patch # User Myk Melez # Date 1223509425 25200 # Node ID 58fb965e56b93d15c2e49a3375ddb9709dcbb71c # Parent 71b4dece493157a967bf779b43b83887628fcaca simplify URI module code slightly diff -r 71b4dece4931 -r 58fb965e56b9 modules/URI.js --- a/modules/URI.js Thu Oct 02 17:34:22 2008 -0700 +++ b/modules/URI.js Wed Oct 08 16:43:45 2008 -0700 @@ -65,10 +65,8 @@ URI.__defineGetter__("ioSvc", function() { - let ioSvc = Cc["@mozilla.org/network/io-service;1"]. - getService(Ci.nsIIOService); delete this.ioSvc; - this.ioSvc = ioSvc; - return this.ioSvc; + return this.ioSvc = Cc["@mozilla.org/network/io-service;1"]. + getService(Ci.nsIIOService); } );