Permalink
Browse files

restore original behaviour of returning undefined

  • Loading branch information...
1 parent 385dd1c commit a7b757a457398609acfe545d5c055cb61c1bc500 Magnus Klaar committed Sep 9, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mimetypes.erl
View
@@ -207,13 +207,13 @@ map_to_abstract_(Module, Pairs) ->
erl_syntax:atom(ext_to_mimes),
ext_to_mimes_clauses(Pairs) ++
[erl_syntax:clause(
- [erl_syntax:underscore()], none, [erl_syntax:abstract([])])]),
+ [erl_syntax:underscore()], none, [erl_syntax:abstract(undefined)])]),
%% mime_to_exts(MimeType) -> [Extension].
erl_syntax:function(
erl_syntax:atom(mime_to_exts),
mime_to_exts_clauses(Pairs) ++
[erl_syntax:clause(
- [erl_syntax:underscore()], none, [erl_syntax:abstract([])])]),
+ [erl_syntax:underscore()], none, [erl_syntax:abstract(undefined)])]),
%% exts() -> [Extension].
erl_syntax:function(erl_syntax:atom(exts), [exts_clause(Pairs)]),
%% mimes() -> [MimeType].

0 comments on commit a7b757a

Please sign in to comment.