whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Last argument as keyword parameters is deprecated
Date Mon, 05 Oct 2020 10:19:49 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
     new 9a5a6f0  Last argument as keyword parameters is deprecated
9a5a6f0 is described below

commit 9a5a6f03407e55fca982002ef6dbeafee6e856e0
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Oct 5 11:19:41 2020 +0100

    Last argument as keyword parameters is deprecated
 www/secretary/workbench/models/attachment.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/models/attachment.rb b/www/secretary/workbench/models/attachment.rb
index a1fdcb5..17738c3 100644
--- a/www/secretary/workbench/models/attachment.rb
+++ b/www/secretary/workbench/models/attachment.rb
@@ -45,7 +45,7 @@ class Attachment
   # writes the attachment to the specified pathname, which must not exist
   def write_path(path)
-    File.open(path, File::WRONLY|File::CREAT|File::EXCL, {encoding: Encoding::BINARY}) do
+    File.open(path, File::WRONLY|File::CREAT|File::EXCL, encoding: Encoding::BINARY) do |file|
       file.write body

View raw message