Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
robacourt committed Sep 26, 2024
1 parent b8deb91 commit 85ba982
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/sync-service/lib/electric/shapes/consumer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ defmodule Electric.Shapes.Consumer do
defp selector(%Transaction{changes: changes}, shape) do
changes
|> Stream.flat_map(&Shape.convert_change(shape, &1))
|> Enum.take(1)
|> case do
[] -> false
[_] -> true
end
|> Enum.any?()
end

defp selector(_, _), do: false
Expand Down

0 comments on commit 85ba982

Please sign in to comment.