Skip to content

Commit

Permalink
KAZOO-3891: wrap return for proper tuplige
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesaimonetti authored and fenollp committed Mar 3, 2016
1 parent 2dc7d3d commit f2a320f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/kazoo_number_manager-1.0.0/src/knm_number.erl
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ move(Num, MoveTo) ->
move(Num, MoveTo, Options) ->
case get(Num, Options) of
{'ok', Number} ->
move_to(Number, MoveTo);
attempt(fun move_to/2, [Number, MoveTo]);
{'error', 'not_found'} ->
PN = knm_phone_number:new(Num, Options),
Number = set_phone_number(new(), PN),
move_to(Number, MoveTo);
attempt(fun move_to/2, [Number, MoveTo]);
{'error', _E}=E -> E
end.

Expand Down

0 comments on commit f2a320f

Please sign in to comment.