fix: remove useless condition (#20118)

Signed-off-by: ipangpang <arronipangpang@gmail.com>
This commit is contained in:
ipangpang 2024-04-22 14:10:34 +08:00 committed by GitHub
parent f31a6a3024
commit 4a7a6411ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View File

@ -236,9 +236,6 @@ func (c *container) addNode(provider *providerDescriptor, key *moduleKey) (inter
typeGraphNode = vr.typeGraphNode()
} else {
typeGraphNode = c.typeGraphNode(typ)
if err != nil {
return nil, err
}
}
c.addGraphEdge(typeGraphNode, providerGraphNode)

View File

@ -130,11 +130,7 @@ func NextBlock(app *runtime.App, ctx sdk.Context, jumpTime time.Duration) (sdk.C
Time: header.Time,
})
if err != nil {
return sdk.Context{}, err
}
return newCtx, err
return newCtx, nil
}
// SetupWithConfiguration initializes a new runtime.App. A Nop logger is set in runtime.App.