Skip to content

Commit 8b93bac

Browse files
committed
remove needless defensive check
1 parent bcbe97a commit 8b93bac

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

internal/dependencymanager/dependencyinstaller.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,6 @@ func (di *DependencyInstaller) verifyLocalFileIntegrity(contractAddr, contractNa
613613
return nil // File doesn't exist, nothing to verify
614614
}
615615

616-
if expectedHash == "" {
617-
return nil // No hash stored, can't verify (legacy state)
618-
}
619-
620616
filePath := di.getContractFilePath(contractAddr, contractName)
621617
fileContent, err := di.State.ReaderWriter().ReadFile(filePath)
622618
if err != nil {

0 commit comments

Comments
 (0)