Skip to content

Commit 33ebd87

Browse files
Fix Config.config_env/0 with empty Process dictionary (#11356)
1 parent 34f32ef commit 33ebd87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/config.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ defmodule Config do
7575
@config_key {__MODULE__, :config}
7676
@imports_key {__MODULE__, :imports}
7777

78-
defp get_opts!(), do: Process.get(@opts_key)
78+
defp get_opts!(), do: Process.get(@opts_key) || raise_improper_use!()
7979
defp put_opts(value), do: Process.put(@opts_key, value)
8080
defp delete_opts(), do: Process.delete(@opts_key)
8181

0 commit comments

Comments
 (0)