Skip to content

Commit

Permalink
Fix cause for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinungf committed Mar 17, 2024
1 parent 0a78763 commit 675fe11
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SpreadCheetah/MetadataXml/WorksheetStartXml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ private bool TryWriteColumns(Span<byte> bytes, ref int bytesWritten)
if (!SpanHelper.TryWrite(options.Width.GetValueOrDefault(), span, ref written)) return false;
if (!"\" customWidth=\"1\""u8.TryCopyTo(span, ref written)) return false;
}
if (options.Hidden)
{
if (!" hidden=\"1\""u8.TryCopyTo(span, ref written)) return false;
}

if (options.Hidden && !" hidden=\"1\""u8.TryCopyTo(span, ref written)) return false;
if (!" />"u8.TryCopyTo(span, ref written)) return false;

_anyColumnWritten = anyColumnWritten;
Expand Down

0 comments on commit 675fe11

Please sign in to comment.