Skip to content

Commit 32afe70

Browse files
committed
simplify
1 parent 1224b72 commit 32afe70

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

+stdlib/+hdf5nc/h5variables.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
arguments
1515
file (1,1) string {mustBeNonzeroLengthText}
16-
group string {mustBeScalarOrEmpty} = string.empty
16+
group (1,1) string {mustBeNonzeroLengthText} = "/"
1717
end
1818

1919
import stdlib.fileio.expanduser
@@ -22,11 +22,7 @@
2222

2323
names = string.empty;
2424

25-
if isempty(group)
26-
finf = h5info(file);
27-
else
28-
finf = h5info(file, group);
29-
end
25+
finf = h5info(file, group);
3026

3127
ds = finf.Datasets;
3228

0 commit comments

Comments
 (0)