Skip to content

Commit dc22d87

Browse files
ZSPACE-12104 Solve code review issues.
1 parent 9c1e636 commit dc22d87

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Writer/MetadataWriter.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,13 +481,9 @@ private void WriteTextMetadata(IRawDataPlus rawFile, int firstScanNumber, int la
481481
string[] userTexts = rawFile.SampleInformation.UserText;
482482
if (!userLabels.IsNullOrEmpty() && !userTexts.IsNullOrEmpty())
483483
{
484-
if (userLabels.Length > userTexts.Length)
485-
{
486-
throw new RawFileParserException();
487-
}
488484
for (int i = 0; i < userLabels.Length; i++)
489485
{
490-
if (!userTexts[i].IsNullOrEmpty())
486+
if (i < userTexts.Length && !userTexts[i].IsNullOrEmpty())
491487
{
492488
output.Add(userLabels[i] + "=" + userTexts[i]);
493489
}

0 commit comments

Comments
 (0)