From 12623ee4a2b80341d784607432ece41cc7ce63ab Mon Sep 17 00:00:00 2001 From: Luke Miller Date: Mon, 14 Jun 2021 17:32:59 -0400 Subject: [PATCH] documentation --- modpol/orgs/requests.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modpol/orgs/requests.lua b/modpol/orgs/requests.lua index ae941d1..4cd9012 100644 --- a/modpol/orgs/requests.lua +++ b/modpol/orgs/requests.lua @@ -53,8 +53,10 @@ end -- ======================== -- removes a pending action from the org's table function modpol.orgs:remove_pending_action(process_id, user, action) + -- cautiously checks if pending action exists before removing it if self.pending[user] then if self.pending[user][process_id] then + -- searching for action to remove for i, a in pairs(self.pending[user][process_id]) do if a == action then self.pending[user][process_id][i] = nil