Skip to content

Commit

Permalink
fix: remove useless condition (#20118)
Browse files Browse the repository at this point in the history
Signed-off-by: ipangpang <arronipangpang@gmail.com>
  • Loading branch information
ipangpang authored Apr 22, 2024
1 parent f31a6a3 commit 4a7a641
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions depinject/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 1 addition & 5 deletions testutil/sims/app_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4a7a641

Please sign in to comment.