Skip to content

Commit

Permalink
nit: has -> isInitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Aug 30, 2024
1 parent ae679ca commit de65c01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/capability/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ func (k *Keeper) InitMemStore(ctx context.Context) {
// IsInitialized returns true if the keeper is properly initialized, and false otherwise.
func (k *Keeper) IsInitialized(ctx context.Context) bool {
memStore := k.memService.OpenMemoryStore(ctx)
has, err := memStore.Has(types.KeyMemInitialized)
isInitialized, err := memStore.Has(types.KeyMemInitialized)
if err != nil {
panic(err)

Check warning

Code scanning / CodeQL

Panic in BeginBock or EndBlock consensus methods Warning

Possible panics in BeginBock- or EndBlock-related consensus methods could cause a chain halt
}
return has
return isInitialized
}

// InitializeIndex sets the index to one (or greater) in InitChain according
Expand Down

0 comments on commit de65c01

Please sign in to comment.