A little minor formatting cleanup
This commit is contained in:
parent
07a54bb518
commit
8dda138814
4 changed files with 29 additions and 22 deletions
|
@ -62,9 +62,11 @@ compare_against_nothing(Str) ->
|
|||
-spec fine_compare({string(), string()}, string(),
|
||||
{string(), string()}, string()) ->
|
||||
boolean().
|
||||
fine_compare({_StrDigA, StrA}, TA, {_StrDigB, _StrB}, _TB) when StrA /= "", TA /= [] ->
|
||||
fine_compare({_StrDigA, StrA}, TA, {_StrDigB, _StrB}, _TB)
|
||||
when StrA /= "", TA /= [] ->
|
||||
throw(invalid_version_string);
|
||||
fine_compare({_StrDigA, _StrA}, _TA, {_StrDigB, StrB}, TB) when StrB /= "", TB /= [] ->
|
||||
fine_compare({_StrDigA, _StrA}, _TA, {_StrDigB, StrB}, TB)
|
||||
when StrB /= "", TB /= [] ->
|
||||
throw(invalid_version_string);
|
||||
fine_compare({"", _StrA}, _TA, {StrDigB, _StrB}, _TB) when StrDigB /= "" ->
|
||||
false;
|
||||
|
@ -98,7 +100,6 @@ split_numeric_alpha([Dig|T], {PatchVsn, PatchStr})
|
|||
split_numeric_alpha(PatchStr, {PatchVsn, ""}) ->
|
||||
{PatchVsn, PatchStr}.
|
||||
|
||||
|
||||
%%%===================================================================
|
||||
%%% Test Functions
|
||||
%%%===================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue