Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Call version in case directly

  • Loading branch information...
commit f47cec9f6b737ea23e32bbe683547818ad02646c 1 parent 1c84001
@avtobiff authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/uuid.erl
View
3  src/uuid.erl
@@ -379,8 +379,7 @@ is_valid(_) ->
%% argument and returns validity depending on UUID version.
-spec is_valid(Variant::atom(), Uuid::uuid()) -> true | false.
is_valid(rfc4122, Uuid) ->
- Version = version(Uuid),
- case Version of
+ case version(Uuid) of
?UUIDv1 -> true;
?UUIDv3 -> true;
?UUIDv4 -> true;
Please sign in to comment.
Something went wrong with that request. Please try again.