From e14e244f7b5e9b205d462de4f46745a02bc3c8c9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 14 Jan 2011 20:24:03 +0000 Subject: [PATCH] Use #blank? instead of #nil? || #empty?. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4711 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 72104d575..b5f70e3f0 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -139,7 +139,7 @@ class RepositoriesController < ApplicationController end def revision - raise ChangesetNotFound if @rev.nil? || @rev.empty? + raise ChangesetNotFound if @rev.blank? @changeset = @repository.find_changeset_by_name(@rev) raise ChangesetNotFound unless @changeset -- 2.39.5