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.
--- 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: