Skip to content

Commit b8cb066

Browse files
committed
mh autofix
1 parent 53d0ab9 commit b8cb066

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

manualTests/test_createBoldJson.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ function test_createBoldJsonExtra()
2626
cfg = createFilename(cfg);
2727

2828
logFile = saveEventsFile('init', cfg); %#ok<*NASGU>
29-
29+
3030
extraInfo = struct('extraInfo', struct('nestedExtraInfo', 'something extra'));
3131

3232
createBoldJson(cfg, extraInfo);
3333

3434
%% check content
3535
fileName = strrep(cfg.fileName.events, '_events', '_bold');
3636
fileName = strrep(fileName, '.tsv', '.json');
37-
37+
3838
actualStruct = bids.util.jsondecode(fullfile( ...
3939
cfg.dir.outputSubject, ...
4040
cfg.fileName.modality, ...

src/createBoldJson.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function createBoldJson(cfg, extraInfo)
88
% Extra content can be added to the JSON file
99

1010
opts.Indent = ' ';
11-
12-
if nargin<2
11+
12+
if nargin < 2
1313
extraInfo = struct();
1414
end
1515

@@ -22,11 +22,11 @@ function createBoldJson(cfg, extraInfo)
2222
fileName);
2323

2424
jsonContent = cfg.bids.mri;
25-
25+
2626
% add content of extraInfo to the JSON content
2727
if ~isstruct(extraInfo)
28-
warning('additional info added to a json file must be a structure')
29-
end
28+
warning('additional info added to a json file must be a structure');
29+
end
3030
fieldList = fieldnames(extraInfo);
3131
for iField = 1:numel(fieldList)
3232
jsonContent.(fieldList{iField}) = extraInfo.(fieldList{iField});

0 commit comments

Comments
 (0)