chore(voice): rubocop modifier-if on inbox jbuilder voice_enabled line

This commit is contained in:
Tanmay Deep Sharma
2026-05-04 14:20:07 +07:00
parent 1bcc25f95c
commit 092d59333c
+1 -3
View File
@@ -144,6 +144,4 @@ if resource.twilio? && resource.channel.respond_to?(:voice_enabled?)
end
## Voice attribute for WhatsApp Cloud (only embedded-signup channels surface true)
if resource.channel_type == 'Channel::Whatsapp' && resource.channel.respond_to?(:voice_enabled?)
json.voice_enabled resource.channel.voice_enabled?
end
json.voice_enabled resource.channel.voice_enabled? if resource.channel_type == 'Channel::Whatsapp' && resource.channel.respond_to?(:voice_enabled?)