You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/10/03 12:47:45 UTC

[whimsy] branch master updated: Oops, need to keep return value

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 <se...@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