From fc4d0c47538467d24bc7ccf6400082c473b1baed Mon Sep 17 00:00:00 2001 From: Michael <10931741+scivision@users.noreply.github.com> Date: Fri, 16 Jul 2021 04:20:52 -0400 Subject: [PATCH] h5save: remove redundant check --- +stdlib/+hdf5nc/h5save.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/+stdlib/+hdf5nc/h5save.m b/+stdlib/+hdf5nc/h5save.m index a273b52..27526ab 100644 --- a/+stdlib/+hdf5nc/h5save.m +++ b/+stdlib/+hdf5nc/h5save.m @@ -77,7 +77,7 @@ function new_file(filename, varname, A, sizeA) error('hdf5nc:h5save:fileNotFound', '%s is not a folder, cannot create %s', folder, filename) end -if isscalar(A) && ~isstring(A) && ~isempty(varname) +if isscalar(A) && ~isstring(A) dcpl = 'H5P_DEFAULT'; if isfile(filename)