fix: init sha once explicitly from sha1 byte[]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user