提交 320cd7f3 编写于 作者: J James Lopez

fix var inside loop

上级 40fe7722
......@@ -68,8 +68,10 @@ class RemoveDotGitFromUsernames < ActiveRecord::Migration
end
def check_routes(base, counter, path)
route_exists = route_exists?(path)
Gitlab.config.repositories.storages.each_value do |storage|
if route_exists?(path) || path_exists?(path, storage)
if route_exists && path_exists?(path, storage)
counter += 1
path = "#{base}#{counter}"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册