Skip to content

Commit

Permalink
Update lib/phoenix_live_view/async_result.ex
Browse files Browse the repository at this point in the history
Co-authored-by: José Valim <[email protected]>
  • Loading branch information
chrismccord and josevalim authored Aug 23, 2023
1 parent e254592 commit aa23281
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_live_view/async_result.ex
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ defmodule Phoenix.LiveView.AsyncResult do
alias Phoenix.LiveView.AsyncResult

def count(%AsyncResult{result: result, ok?: true}),
do: Enum.count(result)
do: Enumerable.count(result)

def count(%AsyncResult{}), do: 0

Expand Down

0 comments on commit aa23281

Please sign in to comment.