Skip to content

Commit

Permalink
Fix 1.17 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pnezis committed Jun 18, 2024
1 parent 7b7a03d commit a33de63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cascade/lib/cascade/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule Cascade.Utils do
@spec implements_behaviour?(module :: module(), behaviour :: module()) :: boolean()
def implements_behaviour?(module, behaviour) do
Code.ensure_loaded!(module)
behaviours = module.module_info[:attributes][:behaviour]
behaviours = module.module_info()[:attributes][:behaviour]

case behaviours do
nil -> false
Expand Down

0 comments on commit a33de63

Please sign in to comment.