Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix variable 'Bytes' exported from 'case'

  • Loading branch information...
commit e4704f5cf6d96df965ed72e4fc3d72d8aa26b769 1 parent b080744
@voluntas voluntas authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/binpp.erl
View
12 src/binpp.erl
@@ -77,12 +77,12 @@ cmprint(Bin1, Bin2) when is_binary(Bin1) orelse is_bitstring(Bin1),
-spec from_str(string(), hex) -> binary().
from_str(Str, hex) when is_list(Str) ->
- case lists:member($ , Str) of
- true ->
- Bytes = string:tokens(Str, " ");
- false when length(Str) rem 2 =:= 0 ->
- Bytes = buckets(2, Str)
- end,
+ Bytes = case lists:member($ , Str) of
+ true ->
+ string:tokens(Str, " ");
+ false when length(Str) rem 2 =:= 0 ->
+ buckets(2, Str)
+ end,
list_to_binary([ list_to_integer(B,16) || B <- Bytes]).
-spec from_str(string()) -> binary().
Please sign in to comment.
Something went wrong with that request. Please try again.