Skip to content

Commit

Permalink
applies coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
anaice committed Jul 1, 2024
1 parent cebd85c commit 4e77410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cable_ready/channels.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def broadcast_to(model, *identifiers, clear: true)

def clear_channel(channel)
@channels.except!(channel.identifier)
observer = CableReady.config.observers.find { |o| o.try(:identifier) == channel.identifier}
observer = CableReady.config.observers.find { |o| o.try(:identifier) == channel.identifier }
CableReady.config.delete_observer(observer) if observer
end
end
Expand Down

0 comments on commit 4e77410

Please sign in to comment.