Skip to content

Commit b411d8b

Browse files
committed
simplify conditional
1 parent d72dbe3 commit b411d8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+nix/Block.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
%-- 1D data arrays created with this function.
7474
%-- e.g. size([1 2 3]) returns shape [1 3], which would not
7575
%-- be accepted when trying to add an alias range dimension.
76-
if(size(data, 1) == 1)
76+
if(shape(1) == 1)
7777
shape = size(data, 2);
7878
end;
7979

0 commit comments

Comments
 (0)