]> source.dussan.org Git - redmine.git/commitdiff
Use #blank? instead of #nil? || #empty?.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 14 Jan 2011 20:24:03 +0000 (20:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 14 Jan 2011 20:24:03 +0000 (20:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4711 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/repositories_controller.rb

index 72104d575063f0f5b3edd3fdd8bdb85c94c18c1e..b5f70e3f0684445667f68e246d77008c140407a3 100644 (file)
@@ -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