fix: init sha once explicitly from sha1 byte[]

This commit is contained in:
2025-03-06 08:53:07 +01:00
parent 6b16e07adc
commit 33b7b999c8

View File

@@ -621,9 +621,9 @@ type ExtendedGrid(grid: IGrid) =
// this.initNodeTree ()
Util.tryFindElement grid elementTree.Value p
member this.initSha1(grid: BinGrid) =
if gridSha1.Length = 0 && grid.hash.Length > 0 then
gridSha1 <- grid.hash
member this.initSha1(hash: byte[]) =
if gridSha1.Length = 0 && hash.Length > 0 then
gridSha1 <- hash
member this.getSha1() =
if gridSha1.Length = 0 then