Skip to content

Commit

Permalink
Fix out of range exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Viir committed Aug 10, 2023
1 parent c3c7a71 commit cb12830
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion implement/elm-time/ElmTime/ProcessStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public IEnumerable<byte[]> EnumerateSerializedCompositionsRecordsReverse() =>
https://github.com/elm-time/elm-time/blob/1cd3f00bdf5a05e9bda479c534b0458b2496393c/implement/PersistentProcess/PersistentProcess.Common/ProcessStore.cs#L183
Looking at the files from stores in production, it seems like that caused addition of BOM.
*/
fileContent.Value[..3].Span.SequenceEqual(new byte[] { 0xEF, 0xBB, 0xBF })
fileContent.Value.Span.StartsWith(new byte[] { 0xEF, 0xBB, 0xBF })
?
3
:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public ProcessStoreReaderInFileStore(IFileStoreReader fileStore)
https://github.com/elm-time/elm-time/blob/1cd3f00bdf5a05e9bda479c534b0458b2496393c/implement/PersistentProcess/PersistentProcess.Common/ProcessStore.cs#L183
Looking at the files from stores in production, it seems like that caused addition of BOM.
*/
fileContent.Value[..3].Span.SequenceEqual(new byte[] { 0xEF, 0xBB, 0xBF })
fileContent.Value.Span.StartsWith(new byte[] { 0xEF, 0xBB, 0xBF })
?
3
:
Expand Down

0 comments on commit cb12830

Please sign in to comment.