Skip to content

Commit 9b78927

Browse files
committed
lint
1 parent 6fff261 commit 9b78927

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/Mapping.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,4 +376,3 @@ function print_mapping(obj, filename)
376376

377377
end
378378
end
379-

src/utils/identify_sources.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,5 +117,3 @@
117117
sources{end + 1, 1} = fullfile(bf.bids_path, new_filename);
118118

119119
end
120-
121-

src/utils/prepare_for_printing.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
spec.entities = struct('add', 'joker');
77
end
88
bf = bids.File(spec, 'tolerant', true);
9-
9+
1010
if isfield(spec, 'suffix') && isempty(spec.suffix) || ...
1111
~isfield(spec, 'suffix')
1212
spec.suffix = '*';
@@ -19,4 +19,4 @@
1919
spec.ext = '.*';
2020
end
2121

22-
end
22+
end

tests/test_spm_2_bids_metadata.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ function test_spm_2_bids_non_raw_suffix()
4747

4848
assertEqual(fieldnames(json), {'filename'; 'content'});
4949
assertEqual(json.content.RawSources{1}, 'sub-01/sub-01_task-foo_mask.nii.gz');
50-
assertEqual(json.content.Sources{end}, 'sub-01/sub-01_task-foo_space-individual_desc-realignUnwarp_mask.nii');
50+
51+
too_long = 'sub-01/sub-01_task-foo_space-individual_desc-realignUnwarp_mask.nii';
52+
assertEqual(json.content.Sources{end}, too_long);
5153

5254
bids.util.jsonencode(json.filename, json.content);
5355

0 commit comments

Comments
 (0)