Skip to content

Commit fc4d0c4

Browse files
authored
h5save: remove redundant check
1 parent 5efb20e commit fc4d0c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+stdlib/+hdf5nc/h5save.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function new_file(filename, varname, A, sizeA)
7777
error('hdf5nc:h5save:fileNotFound', '%s is not a folder, cannot create %s', folder, filename)
7878
end
7979

80-
if isscalar(A) && ~isstring(A) && ~isempty(varname)
80+
if isscalar(A) && ~isstring(A)
8181
dcpl = 'H5P_DEFAULT';
8282

8383
if isfile(filename)

0 commit comments

Comments
 (0)