[Hiki-cvs 1636] hiki/hiki @ a3637db [master] Remove redundant 'to_s'

Back to archive index

okkez null****@okkez*****
2014年 8月 5日 (火) 09:53:45 JST


okkez	2014-08-05 09:53:45 +0900 (Tue, 05 Aug 2014)

  New Revision: a3637db511ba55de2540d1888b411722bdd52cd9
  https://github.com/hiki/hiki/commit/a3637db511ba55de2540d1888b411722bdd52cd9

  Message:
    Remove redundant 'to_s'

  Modified files:
    hiki/attachment.rb

  Modified: hiki/attachment.rb (+1 -1)
===================================================================
--- hiki/attachment.rb    2014-08-05 09:48:56 +0900 (d288dfc)
+++ hiki/attachment.rb    2014-08-05 09:53:45 +0900 (213b659)
@@ -26,7 +26,7 @@ module Hiki
     private
 
     def attach_file(request, conf)
-      unless /^attach\.rb$/ =~ conf.options['sp.selected'].to_s
+      unless /^attach\.rb$/ =~ conf.options['sp.selected']
         return Hiki::Response.new('plugin "attach.rb" is not enabled',
                                   404, 'type' => 'text/plain')
       end




Hiki-cvs メーリングリストの案内
Back to archive index