diff options
author | Luis Rascao <[email protected]> | 2016-09-24 00:39:07 +0100 |
---|---|---|
committer | Luis Rascao <[email protected]> | 2016-09-25 23:23:30 +0100 |
commit | 7dcfafcae37d6f58fe43b5ea2f06e67c8e8428b6 (patch) | |
tree | cb0f92bad71a2b3705d6f5aa5f1434268b1fcd1a /src/rlx_config.erl | |
parent | c7e6d8119037d4d4ab117381027f379de9a6a5df (diff) | |
download | relx-7dcfafcae37d6f58fe43b5ea2f06e67c8e8428b6.tar.gz relx-7dcfafcae37d6f58fe43b5ea2f06e67c8e8428b6.tar.bz2 relx-7dcfafcae37d6f58fe43b5ea2f06e67c8e8428b6.zip |
Silence dialyzer warnings
Fix/add method specs, remove unreachable branches,
make rlx_util:render/2 accept both iolists and binaries.
Diffstat (limited to 'src/rlx_config.erl')
-rw-r--r-- | src/rlx_config.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlx_config.erl b/src/rlx_config.erl index 3c3ba98..d18f5f1 100644 --- a/src/rlx_config.erl +++ b/src/rlx_config.erl @@ -324,10 +324,10 @@ merge_configs([{Key, Value} | CliTerms], ConfigTerms) -> end. parse_vsn(Vsn) when Vsn =:= semver ; Vsn =:= "semver" -> - {ok, V} = ec_git_vsn:vsn([]), + {ok, V} = ec_git_vsn:vsn(ec_git_vsn:new()), V; parse_vsn({semver, _}) -> - {ok, V} = ec_git_vsn:vsn([]), + {ok, V} = ec_git_vsn:vsn(ec_git_vsn:new()), V; parse_vsn({cmd, Command}) -> V = os:cmd(Command), |