From 5673fe035da48d48d0824bf7260bfda28c55c9d5 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sun, 30 Nov 2014 21:12:02 -0600 Subject: fixes for dialyzer findings --- src/rebar_git_resource.erl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/rebar_git_resource.erl') diff --git a/src/rebar_git_resource.erl b/src/rebar_git_resource.erl index bcd2374..4edaa48 100644 --- a/src/rebar_git_resource.erl +++ b/src/rebar_git_resource.erl @@ -126,12 +126,7 @@ collect_default_refcount() -> build_vsn_string(Vsn, RawRef, RawCount) -> %% Cleanup the tag and the Ref information. Basically leading 'v's and %% whitespace needs to go away. - RefTag = case RawRef of - undefined -> - ""; - RawRef -> - [".ref", re:replace(RawRef, "\\s", "", [global])] - end, + RefTag = [".ref", re:replace(RawRef, "\\s", "", [global])], Count = erlang:iolist_to_binary(re:replace(RawCount, "\\s", "", [global])), %% Create the valid [semver](http://semver.org) version from the tag -- cgit v1.1