Skip to content

Commit

Permalink
fix inverted logic from credo cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Jan 1, 2024
1 parent 9f3ad80 commit 2f027e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/video/generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ defmodule Video.Generator do
true ->
rendered.coords()
|> Stream.chunk_every(2, 1, :discard)
|> Stream.reject(fn [a, b] -> time >= a.time_offset_ms && time <= b.time_offset_ms end)
|> Stream.filter(fn [a, b] -> time >= a.time_offset_ms && time <= b.time_offset_ms end)
|> Enum.find_value(fn [a, b] ->
t = calc_t(time, a, b)

Expand Down

0 comments on commit 2f027e4

Please sign in to comment.