url: remove test for self.ui in BetterHTTPS
authorMads Kiilerich <mads@kiilerich.com>
Wed, 16 Feb 2011 04:28:17 +0100
changeset 13419 1cc73868c740
parent 13418 28555e294104
child 13420 051f498628f7
url: remove test for self.ui in BetterHTTPS We use self.ui unconditionally anyway so we would have noticed if it in some cases wasn't set.
mercurial/url.py
--- a/mercurial/url.py	Wed Feb 16 03:28:22 2011 +0100
+++ b/mercurial/url.py	Wed Feb 16 04:28:17 2011 +0100
@@ -546,12 +546,9 @@
         send = keepalive.safesend
 
         def connect(self):
-            if hasattr(self, 'ui'):
-                cacerts = self.ui.config('web', 'cacerts')
-                if cacerts:
-                    cacerts = util.expandpath(cacerts)
-            else:
-                cacerts = None
+            cacerts = self.ui.config('web', 'cacerts')
+            if cacerts:
+                cacerts = util.expandpath(cacerts)
 
             hostfingerprint = self.ui.config('hostfingerprints', self.host)
             if cacerts and not hostfingerprint: