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 61c36b3  Lint: be positive
61c36b3 is described below

commit 61c36b32a22969bf886c643f9a96835f8b50a8e9
Author: Sebb <[email protected]>
AuthorDate: Fri Mar 18 17:34:33 2022 +0000

    Lint: be positive
---
 www/committers/subscribe.cgi | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/www/committers/subscribe.cgi b/www/committers/subscribe.cgi
index fcab71a..c130eee 100755
--- a/www/committers/subscribe.cgi
+++ b/www/committers/subscribe.cgi
@@ -228,10 +228,10 @@ _html do
         request = JSON.pretty_generate(vars) + "\n"
 
         _div.well do
-          if @request != 'unsub'
-            _p 'Submitting subscribe request:'
-          else
+          if @request == 'unsub'
             _p 'Submitting unsubscribe request:'
+          else
+            _p 'Submitting subscribe request:'
           end
 
           _pre request
@@ -265,10 +265,10 @@ _html do
               ASF::SVN.svn('add', fn)
             end
 
-            if @request != 'unsub'
-              message = "#{@list} += #{$USER}"
-            else
+            if @request == 'unsub'
               message = "#{@list} -= #{$USER}"
+            else
+              message = "#{@list} += #{$USER}"
             end
 
             options = credentials.merge({msg: message})
@@ -280,10 +280,10 @@ _html do
           _div.alert.alert_success role: 'alert' do
             _p do
               _span.strong 'Request successfully submitted.'
-              if @request != 'unsub'
-                _ 'You will be subscribed within the hour.'
-              else
+              if @request == 'unsub'
                 _ 'You will be unsubscribed within the hour.'
+              else
+                _ 'You will be subscribed within the hour.'
               end
             end
           end

Reply via email to