From 40815b2bafb209c258048ef08e7506559f1bfa90 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 23 Oct 2014 13:12:21 +0200 Subject: Remove unused variable user at lib/gitlab/markdown --- lib/gitlab/markdown.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/markdown.rb b/lib/gitlab/markdown.rb index ddcce7557a0..068c342398b 100644 --- a/lib/gitlab/markdown.rb +++ b/lib/gitlab/markdown.rb @@ -202,7 +202,7 @@ module Gitlab if identifier == "all" link_to("@all", project_url(project), options) - elsif user = User.find_by(username: identifier) + elsif User.find_by(username: identifier) link_to("@#{identifier}", user_url(identifier), options) end end -- cgit v1.2.1