[Groonga-commit] droonga/droonga-engine at 5d3681c [buffered-forward] Remove needless third parameter for Tempfile.open

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Fri Jan 16 16:37:51 JST 2015


YUKI Hiroshi	2015-01-16 16:37:51 +0900 (Fri, 16 Jan 2015)

  New Revision: 5d3681c3c92291930313b263e1e7a5b5f493bfd8
  https://github.com/droonga/droonga-engine/commit/5d3681c3c92291930313b263e1e7a5b5f493bfd8

  Message:
    Remove needless third parameter for Tempfile.open

  Modified files:
    lib/droonga/safe_file_writer.rb

  Modified: lib/droonga/safe_file_writer.rb (+1 -1)
===================================================================
--- lib/droonga/safe_file_writer.rb    2015-01-16 16:29:50 +0900 (fb402a0)
+++ lib/droonga/safe_file_writer.rb    2015-01-16 16:37:51 +0900 (9c78946)
@@ -24,7 +24,7 @@ module Droonga
         # Don't output the file directly to prevent loading of incomplete file!
         path = Pathname(path).expand_path
         FileUtils.mkdir_p(path.dirname.to_s)
-        Tempfile.open(path.basename.to_s, path.dirname.to_s, "w") do |output|
+        Tempfile.open(path.basename.to_s, path.dirname.to_s) do |output|
           if block_given?
             yield(output, output.path)
           else
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る