Permalink
Browse files

Merge pull request #5 from hirotnk/feature/type_fix

Fix get_type/2 by accepting list as type
  • Loading branch information...
2 parents 835ba82 + 538b780 commit 24c86c792dd3f4e11024fc9afba75cc3135c5097 @eproxus committed Apr 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 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) ->

0 comments on commit 24c86c7

Please sign in to comment.