[Hiki-cvs 1635] hiki/hiki @ 2586468 [master] Remove needless 'then'

Zurück zum Archiv-Index

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


okkez	2014-08-05 09:48:56 +0900 (Tue, 05 Aug 2014)

  New Revision: 25864686fb7e72cc34deec450185427d1614cfef
  https://github.com/hiki/hiki/commit/25864686fb7e72cc34deec450185427d1614cfef

  Message:
    Remove needless 'then'

  Modified files:
    hiki/attachment.rb

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




Hiki-cvs メーリングリストの案内
Zurück zum Archiv-Index