Skip to content

Commit

Permalink
mochi#96 - mochifmt_records regression
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Jan 24, 2013
1 parent b02ea50 commit 22b770e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Version 2.4.1 released XXXX-XX-XX

* Fixed issue in mochifmt_records introduced in v2.4.0
https://github.com/mochi/mochiweb/issues/96

Version 2.4.0 released 2013-01-23

* Switch from parameterized modules to explicit tuple module calls for
Expand Down
4 changes: 2 additions & 2 deletions src/mochifmt_records.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ get_value(Key, Rec, {?MODULE, Recs})
end
catch error:_ -> mochifmt:get_value(Key, Rec)
end;
get_value(Key, Args, {?MODULE, _Recs}=THIS) ->
mochifmt:get_value(Key, Args, THIS).
get_value(Key, Args, {?MODULE, _Recs}) ->
mochifmt:get_value(Key, Args).

get_rec_index(Atom, [Atom | _], Index) ->
Index;
Expand Down

0 comments on commit 22b770e

Please sign in to comment.