Skip to content

Commit ee08f31

Browse files
Torkanceleste-wahlquist
authored andcommitted
fix: add [] as fallback for modules = Application.spec(app, :modules) (ash-project#2620)
1 parent 4a0ea09 commit ee08f31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ash/info.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ defmodule Ash.Info do
7777
"""
7878
@spec defined_extensions(app :: Application.app()) :: [module()]
7979
def defined_extensions(app) do
80-
modules = Application.spec(app, :modules)
80+
modules = Application.spec(app, :modules) || []
8181
# Preload the modules to improve performance.
8282
Code.ensure_all_loaded(modules)
8383
Enum.filter(modules, &Spark.implements_behaviour?(&1, Spark.Dsl.Extension))

0 commit comments

Comments
 (0)