Skip to content

Commit

Permalink
Update op_add_analysis_provenance.m
Browse files Browse the repository at this point in the history
Fix an error occurring because the function does not create an output argument if the `if` condition in line 36 is not met.
  • Loading branch information
schorschinho committed Mar 7, 2024
1 parent 2e5eb27 commit fa85d37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/FID-A/processingTools/op_add_analysis_provenance.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,8 @@

% Add updated field back into struct
out.nii_mrs.hdr_ext = hdr_ext;

else
out = in;
end
end

0 comments on commit fa85d37

Please sign in to comment.