From a5cef0ce7b6f999d504512d0941d72896c782d1a Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 12 Nov 2025 21:15:35 -0500 Subject: [PATCH] unused arg --- lib/backend_sgx.rb | 2 +- lib/command_list.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/backend_sgx.rb b/lib/backend_sgx.rb index 0cbec1a5e9d53f8a3df29773c8baa7a75c27185f..b555169ddd2a63f048543142a4e05f56bd863393 100644 --- a/lib/backend_sgx.rb +++ b/lib/backend_sgx.rb @@ -57,7 +57,7 @@ class BackendSgx def commands iq = Blather::Stanza::DiscoItems.new(:get, COMMANDS_DISCO_NODE) iq.to = "" - IQ_MANAGER.write(stanza(iq)).then(&:items).catch { |e| + IQ_MANAGER.write(stanza(iq)).then(&:items).catch { [] } end diff --git a/lib/command_list.rb b/lib/command_list.rb index 330cd3d4c55370d426adc44e0281df9c934090aa..414ada323ba2a77ffa814eb062b6f84a4d2995ae 100644 --- a/lib/command_list.rb +++ b/lib/command_list.rb @@ -19,7 +19,7 @@ class CommandList from_jid: from_jid, customer: customer, tel: customer&.registered? ? customer&.registered?&.phone : nil, fwd: customer&.fwd, feature_flags: customer&.feature_flags || [], - payment_methods: [] + payment_methods: [], sgx_commands: [] } return EMPromise.resolve(args) unless customer&.plan_name