]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at app/models/principal.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:31:10 +0000 (12:31 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:31:10 +0000 (12:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20288 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/principal.rb

index 525693129204a392bd2eec1f6198bdf88472fdff..c31effec4b354026b3e83c45238e596a0d70ac0e 100644 (file)
@@ -183,11 +183,11 @@ class Principal < ActiveRecord::Base
     if principal.nil? && / /.match?(keyword)
       firstname, lastname = *(keyword.split) # "First Last Throwaway"
       principal ||=
-        principals.detect {|a|
+        principals.detect do |a|
           a.is_a?(User) &&
             firstname.casecmp(a.firstname.to_s) == 0 &&
               lastname.casecmp(a.lastname.to_s) == 0
-        }
+        end
     end
     if principal.nil?
       principal ||= principals.detect {|a| keyword.casecmp(a.name) == 0}