Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #5 from hirotnk/feature/type_fix

Fix get_type/2 by accepting list as type
  • Loading branch information...
commit 24c86c792dd3f4e11024fc9afba75cc3135c5097 2 parents 835ba82 + 538b780
Adam Lindberg authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/grapherl.erl
3  src/grapherl.erl
View
@@ -196,7 +196,8 @@ stop_xref(Ref) ->
get_type(Options, Target) ->
case proplists:get_value(type, Options) of
undefined -> type_from_filename(Target);
- Type -> atom_to_list(Type)
+ Type when is_atom(Type) -> atom_to_list(Type);
+ Type -> Type
end.
type_from_filename(Filename) ->
Please sign in to comment.
Something went wrong with that request. Please try again.