Mercurial > hg > octave-terminal
changeset 12176:515446c8fe23
curl.m: fix thinko in previous change
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 27 Jan 2011 00:12:30 -0500 |
parents | 2090995ca588 |
children | 3592c57fa6a8 |
files | scripts/general/curl.m |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/general/curl.m +++ b/scripts/general/curl.m @@ -90,11 +90,9 @@ av = rot_z / 2; if (nargout == 0 || nargout == 1) varargout{1} = av; - elseif (nargout == 2) + else varargout{1} = rot_z; varargout{2} = av; - else - error ("curl: number of output arguments must be 1 or 2"); endif elseif ((nargin == 6) || (nargin == 3)) @@ -126,8 +124,6 @@ varargout{2} = rot_y; varargout{3} = rot_z; varargout{4} = av; - else - error ("curl: number of output arguments must be smaller than 5"); endif endif