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 8b12f8f  Tidy
8b12f8f is described below

commit 8b12f8f8e956afae85aa9721c15eae186654a1f6
Author: Sebb <[email protected]>
AuthorDate: Wed Feb 16 13:38:48 2022 +0000

    Tidy
---
 www/secretary/workbench/views/parts.js.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/secretary/workbench/views/parts.js.rb 
b/www/secretary/workbench/views/parts.js.rb
index a0d8b40..dd40f9f 100644
--- a/www/secretary/workbench/views/parts.js.rb
+++ b/www/secretary/workbench/views/parts.js.rb
@@ -63,11 +63,11 @@ class Parts < Vue
       end
     end
 
-    if @headers and @headers.secmail and @headers.secmail.status
+    if @headers&.secmail&.status
       _div.alert.alert_info @headers.secmail.status
     end
 
-    if @headers and @headers.secmail and @headers.secmail.notes
+    if @headers&.secmail&.notes
       _div.alert.alert_warning do
         _h5 'Notes:'
         _span @headers.secmail.notes
@@ -96,7 +96,7 @@ class Parts < Vue
         headers: @headers
 
       _ul.nav.nav_tabs do
-        _li class: ('active' unless [:edit, :mail].include?(@form)) do
+        _li class: ('active' unless %i[edit mail].include?(@form)) do
           _a 'Categorize', onMousedown: self.tabSelect
         end
         _li class: ('active' if @form == :edit) do

Reply via email to