From 92cbac7966015e26416ee164a15f12d69c989765 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 27 Apr 2015 20:39:20 -0400 Subject: [PATCH] Simplify substitution --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 1914db8dff..d270ec46ec 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -452,7 +452,7 @@ end class SubversionDownloadStrategy < VCSDownloadStrategy def initialize(name, resource) super - @url = @url.sub(/^svn\+/, "") if @url.start_with?("svn+http://") + @url = @url.sub("svn+http://", "") end def fetch