File tree Expand file tree Collapse file tree 5 files changed +16
-32
lines changed Expand file tree Collapse file tree 5 files changed +16
-32
lines changed Original file line number Diff line number Diff line change 4141
4242hash = sprintf(' %.2x ' , hash );
4343
44- if isa( file , " string " )
44+ try % #ok<TRYNC>
4545 hash = string(hash );
4646end
4747
Original file line number Diff line number Diff line change 66
77s = getenv(" SHELL" );
88
9- d = " " ;
10-
11- if isa(d , " string" )
9+ try % #ok<TRYNC>
1210 s = string(s );
1311end
1412
Original file line number Diff line number Diff line change 2222
2323ds = finf .Datasets ;
2424
25- if ischar(file )
26- if isempty(ds ) % #ok<UNRCH>
27- names = [];
28- else
29- names = {ds .Name };
30- end
25+ if isempty(ds )
26+ names = [];
3127else
32- if isempty( ds )
33- names = string . empty ;
34- else
35- names = string({ ds . Name });
36- end
28+ names = { ds . Name };
29+ end
30+
31+ try % #ok<TRYNC>
32+ names = string( names );
3733end
3834
3935end
Original file line number Diff line number Diff line change 2323
2424ds = finf .Variables(: );
2525
26- if ischar(file )
27- if isempty(ds ) % #ok<UNRCH>
28- names = [];
29- else
30- names = {ds .Name };
31- end
26+ if isempty(ds )
27+ names = [];
3228else
33- if isempty( ds )
34- names = string . empty ;
35- else
36- names = string({ ds . Name });
37- end
29+ names = { ds . Name };
30+ end
31+
32+ try % #ok<TRYNC>
33+ names = string( names );
3834end
3935
4036
Original file line number Diff line number Diff line change 11function s = jPosix(o )
22
3- d = " " ;
4-
53 if isempty(o )
64 s = " " ;
75 else
86 s = o .toString();
97 end
108
11- if isa(d , " string" )
12- s = string(s );
13- end
14-
159 s = stdlib .posix(s );
1610
1711end
You can’t perform that action at this time.
0 commit comments