Skip to content

Commit

Permalink
Remove unnecessary error
Browse files Browse the repository at this point in the history
  • Loading branch information
eproxus committed Feb 16, 2022
1 parent 3aba6bf commit 37b2b65
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/grisp_tools_deploy.erl
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,6 @@ run_script(Name, State0) ->
release(State0, Release) ->
State1 = event(State0, [{start, Release}]),
{Spec, State2} = exec(release, State1, [Release]),
case maps:merge(Release, Spec) of
#{name := Name, dir := Dir, version := Version} = Merged
when length(Name) > 0, length(Dir) > 0, length(Version) > 0 ->
State3 = event(State2, [{done, Merged}]),
mapz:deep_merge(State3, #{release => Merged});
Merged ->
error({invalid_release, Merged})
end.
Merged = maps:merge(Release, Spec),
State3 = event(State2, [{done, Merged}]),
mapz:deep_merge(State3, #{release => Merged}).

0 comments on commit 37b2b65

Please sign in to comment.