diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index 1f6ae8acc416b9fbe5ebc727fb8451d5a73705c6..4313ac894d18e5dd824735a1f58a92d7c43238bd 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -552,7 +552,6 @@ module Homebrew
         # We're in the cache; make sure to force re-download
         while true do
           begin
-            retry_count = retry_count
             curl url, "-o", filename
             break
           rescue