Skip to content

Commit

Permalink
fix saveOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Jul 7, 2024
1 parent 1e4f4c9 commit b73a347
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/IO/saveOptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ function saveOptions(opt)
taskString = '';
if isfield(opt, 'taskName') && ...
iscellstr(opt.taskName) && ...
length(opt.taskName) > 1 && ...
~strcmp(opt.taskName{1}, '')
~all(cellfun(@(x) strcmp(x, ''), opt.taskName))
taskString = ['_task-', strjoin(opt.taskName, '')];
end

Expand Down

0 comments on commit b73a347

Please sign in to comment.