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: Oops, need to keep return value
Date Sat, 03 Oct 2020 12:47:45 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 b6f4aa8  Oops, need to keep return value
b6f4aa8 is described below

commit b6f4aa881c22d1cdcdf61749aff67e41662f3bba
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Oct 3 13:47:33 2020 +0100

    Oops, need to keep return value
---
 www/secretary/workbench/models/attachment.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/secretary/workbench/models/attachment.rb b/www/secretary/workbench/models/attachment.rb
index cdc8ab8..cb9055a 100644
--- a/www/secretary/workbench/models/attachment.rb
+++ b/www/secretary/workbench/models/attachment.rb
@@ -41,6 +41,7 @@ class Attachment
     name = self.name.dup
     name.gsub! /^\W/, ''
     name.gsub! /[^\w.]/, '_'
+    name
   end
 
   # writes the attachment to the specified pathname, which must not exist


Mime
View raw message