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: Easier to test if the methods appear before any code
Date Tue, 17 Mar 2020 14:33:38 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 d0499c8  Easier to test if the methods appear before any code
d0499c8 is described below

commit d0499c8de244b2ce687c6665192ebbe93cabc587
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Mar 17 14:33:03 2020 +0000

    Easier to test if the methods appear before any code
---
 www/secretary/workbench/views/actions/check-signature.json.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/secretary/workbench/views/actions/check-signature.json.rb b/www/secretary/workbench/views/actions/check-signature.json.rb
index 1608d0e..99882ec 100644
--- a/www/secretary/workbench/views/actions/check-signature.json.rb
+++ b/www/secretary/workbench/views/actions/check-signature.json.rb
@@ -34,8 +34,6 @@ end
 
 MAX_KEY_SIZE = 20700 # don't import if the ascii keyfile is larger than this
 
-message = Mailbox.find(@message)
-
 require 'net/http'
 
 # fetch the Key from the URI and store in the file
@@ -66,6 +64,8 @@ def getURI(uri,file)
   end
 end
 
+message = Mailbox.find(@message)
+
 begin
   # fetch attachment and signature
   attachment = message.find(URI.decode(@attachment)).as_file # This is derived from a URI


Mime
View raw message