]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of app/models/import.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 17 Nov 2020 12:40:55 +0000 (12:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 17 Nov 2020 12:40:55 +0000 (12:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20406 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/import.rb

index 6db76ce1bec89dcb8f0853a2bbff503471e84400..1fe6f81fb26d8d450c7d51874c735fc13f1960a8 100644 (file)
@@ -68,7 +68,7 @@ class Import < ActiveRecord::Base
     if file_exists?
       begin
         content = File.read(filepath, 256)
-        separator = [',', ';'].sort_by {|sep| content.count(sep) }.last
+        separator = [',', ';'].sort_by {|sep| content.count(sep)}.last
       rescue => e
       end
     end