From 37b2b6525eea2bafb3de79fbf494e9f8c5f5af08 Mon Sep 17 00:00:00 2001 From: Adam Lindberg Date: Wed, 16 Feb 2022 16:03:50 +0100 Subject: [PATCH] Remove unnecessary error --- src/grisp_tools_deploy.erl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/grisp_tools_deploy.erl b/src/grisp_tools_deploy.erl index 362eac7..1a4287e 100644 --- a/src/grisp_tools_deploy.erl +++ b/src/grisp_tools_deploy.erl @@ -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}).