File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 19
19
%
20
20
21
21
-module (application ).
22
- -export ([get_env /3 ]).
22
+ -export ([get_env /2 , get_env / 3 ]).
23
23
-export_type ([start_type / 0 ]).
24
24
25
25
-type start_type () :: normal | {takeover , Node :: node ()} | {failover , Node :: node ()}.
26
26
27
+ % %-----------------------------------------------------------------------------
28
+ % % @param Application application to get the parameter value of
29
+ % % @param Parameter parameter to get the value of
30
+ % % @returns undefined
31
+ % % @doc Retrieve the value of the configuration parameter `Parameter' for
32
+ % % application `Application' or `undefined' if not found.
33
+ % % @end
34
+ % %-----------------------------------------------------------------------------
35
+ -spec get_env (Application :: atom (), Parameter :: atom ()) -> any ().
36
+ get_env (Application , Parameter ) ->
37
+ get_env (Application , Parameter , undefined ).
38
+
27
39
% %-----------------------------------------------------------------------------
28
40
% % @param Application application to get the parameter value of
29
41
% % @param Parameter parameter to get the value of
You can’t perform that action at this time.
0 commit comments