whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Ruby <ru...@apache.org>
Subject [whimsy.git] [1/1] Commit e49038a: fix variable name
Date Mon, 15 Feb 2016 01:04:13 GMT
Commit e49038af3fbb73ccea6bc7d8f75090a8dcf893d5:
    fix variable name


Branch: refs/heads/master
Author: Sam Ruby <rubys@intertwingly.net>
Committer: Sam Ruby <rubys@intertwingly.net>
Pusher: rubys <rubys@apache.org>

------------------------------------------------------------
www/roster/views/actions/committee.json.rb                   | ++ --
------------------------------------------------------------
4 changes: 2 additions, 2 deletions.
------------------------------------------------------------


diff --git a/www/roster/views/actions/committee.json.rb b/www/roster/views/actions/committee.json.rb
index 505f644..c567257 100644
--- a/www/roster/views/actions/committee.json.rb
+++ b/www/roster/views/actions/committee.json.rb
@@ -3,10 +3,10 @@
     pmc = ASF::Committee.find(@pmc) if @targets.include? 'pmc'
     group = ASF::Group.find(@pmc) if @targets.include? 'commit'
 
-    if action == 'add'
+    if @action == 'add'
       pmc.add(@person) if pmc
       group.add(@person) if group
-    elsif action == 'remove'
+    elsif @action == 'remove'
       pmc.remove(@person) if pmc
       group.remove(@person) if group
     end

Mime
View raw message