Mercurial > octave
diff libinterp/operators/op-str-str.cc @ 20833:9c4c87679985
restructure calls to error
* op-bm-bm.cc, op-cell.cc, op-class.cc, op-cm-cm.cc, op-fcm-fcm.cc,
op-fm-fm.cc, op-m-m.cc, op-str-str.cc, op-struct.cc:
Restructure calls to error to avoid excess indentation.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Dec 2015 14:32:04 -0500 |
parents | 4197fc428c7d |
children | 48b2ad5ee801 |
line wrap: on
line diff
--- a/libinterp/operators/op-str-str.cc Wed Dec 09 14:18:52 2015 -0500 +++ b/libinterp/operators/op-str-str.cc Wed Dec 09 14:32:04 2015 -0500 @@ -39,13 +39,10 @@ CAST_UNOP_ARG (const octave_char_matrix_str&); if (v.ndims () > 2) - { - error ("transpose not defined for N-d objects"); - return octave_value (); - } - else - return octave_value (v.char_matrix_value ().transpose (), - a.is_sq_string () ? '\'' : '"'); + error ("transpose not defined for N-d objects"); + + return octave_value (v.char_matrix_value ().transpose (), + a.is_sq_string () ? '\'' : '"'); } // string by string ops.