Skip to content

Commit

Permalink
Minor bug fix in WorkspaceBackup: filtering empty varnames list
Browse files Browse the repository at this point in the history
  • Loading branch information
martinherrerias committed Nov 7, 2023
1 parent 2d74b59 commit 9473955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WorkspaceBackup.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
varnames = setdiff(varnames, obj.skipnames);
end

if ~isempty(obj.skipclasses) || ~isempty(obj.onlyclasses)
if ~isempty(varnames) && (~isempty(obj.skipclasses) || ~isempty(obj.onlyclasses))
varinfo = evalin(obj.workspace, WorkspaceBackup.quotedcmd('whos', varnames));

if ~isempty(obj.skipclasses)
Expand Down

0 comments on commit 9473955

Please sign in to comment.