summaryrefslogtreecommitdiff
path: root/src/rebar_prv_unlock.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2018-04-20 19:27:46 -0400
committerFred Hebert <mononcqc@ferd.ca>2018-04-20 19:27:46 -0400
commit53af2354cc990d23908709ba3b439de5c196023f (patch)
treeedd67dfe383c2d4b18a7230a973cf3a82d8d90a9 /src/rebar_prv_unlock.erl
parenta73deb79cdeab9430972e6185b178aaa82ef00d4 (diff)
Fix various Dialyzer warnings
Some still remain from erl_type calls from Dialyzer, but most of them are handled. Decided to just ignore rebar_alias since playing with the type specs of abstract code format is just a nightmare and hard to do cross-versions I guess.
Diffstat (limited to 'src/rebar_prv_unlock.erl')
-rw-r--r--src/rebar_prv_unlock.erl8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/rebar_prv_unlock.erl b/src/rebar_prv_unlock.erl
index 8480991..6fe8bd8 100644
--- a/src/rebar_prv_unlock.erl
+++ b/src/rebar_prv_unlock.erl
@@ -48,12 +48,8 @@ do(State) ->
?PRV_ERROR({file,Reason});
{ok, _} ->
Locks = rebar_config:consult_lock_file(LockFile),
- case handle_unlocks(State, Locks, LockFile) of
- {ok, NewLocks} ->
- {ok, rebar_state:set(State, {locks, default}, NewLocks)};
- {error, Reason} ->
- ?PRV_ERROR({file,Reason})
- end
+ {ok, NewLocks} = handle_unlocks(State, Locks, LockFile),
+ {ok, rebar_state:set(State, {locks, default}, NewLocks)}
end.
-spec format_error(any()) -> iolist().