Skip to content

Commit

Permalink
Improve existing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Jun 30, 2024
1 parent f762bae commit 8d17c93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/arizona_example_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
-export([stop/1]).

-spec start(StartType, StartArgs) -> Started
when StartType :: normal,
StartArgs :: [],
when StartType :: application:start_type(),
StartArgs :: term(),
Started :: supervisor:startlink_ret().
start(_StartType, _StartArgs) ->
arizona_example_sup:start_link().

-spec stop(State) -> Stopped
when State :: [],
when State :: term(),
Stopped :: ok.
stop(_State) ->
ok.
4 changes: 2 additions & 2 deletions src/arizona_example_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).

-spec init(Args) -> Init
when Args :: [],
when Args :: term(),
Init :: {ok, {SupFlags, [ChildSpec]}},
SupFlags :: supervisor:sup_flags(),
ChildSpec :: supervisor:child_spec().
init([]) ->
init(_Args) ->
SupFlags = #{
strategy => one_for_all,
intensity => 0,
Expand Down

0 comments on commit 8d17c93

Please sign in to comment.