Mercurial > octave
diff libinterp/parse-tree/pt-fcn-handle.cc @ 21055:5e00ed38a58b
maint: Replace if/error/else paradigm with just if/error.
* __ilu__.cc, data.cc, file-io.cc, graphics.cc, graphics.in.h, ls-mat5.cc,
lu.cc, octave-link.cc, regexp.cc, schur.cc, spparms.cc, sub2ind.cc,
syscalls.cc, toplev.cc, variables.cc, xpow.cc, audiodevinfo.cc, ccolamd.cc,
ov-builtin.cc, ov-classdef.cc, ov-intx.h, ov-lazy-idx.cc, ov-mex-fcn.cc,
op-int.h, lex.ll, oct-parse.in.yy, pt-binop.cc, pt-cbinop.cc, pt-const.cc,
pt-decl.h, pt-fcn-handle.cc, pt-unop.cc, CollocWt.cc:
Replace if/error/else paradigm with just if/error.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 13 Jan 2016 11:02:22 -0800 |
parents | 48b2ad5ee801 |
children | fcac5dbbf9ed |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-fcn-handle.cc Tue Jan 12 21:45:58 2016 +0100 +++ b/libinterp/parse-tree/pt-fcn-handle.cc Wed Jan 13 11:02:22 2016 -0800 @@ -62,8 +62,8 @@ if (nargout > 1) error ("invalid number of output arguments for function handle expression"); - else - retval = rvalue1 (nargout); + + retval = rvalue1 (nargout); return retval; } @@ -181,8 +181,8 @@ if (nargout > 1) error ("invalid number of output arguments for anonymous function handle expression"); - else - retval = rvalue1 (nargout); + + retval = rvalue1 (nargout); return retval; }