Remove unnecessary falsy handling
This commit is contained in:
parent
cb1e68906c
commit
3c55cb1fdd
@ -375,8 +375,7 @@ export class CosmWasmClient {
|
||||
do {
|
||||
const { contracts, pagination }: QueryContractsByCodeResponse =
|
||||
await this.forceGetQueryClient().wasm.listContractsByCodeId(codeId, startAtKey);
|
||||
const loadedContracts = contracts || [];
|
||||
allContracts.push(...loadedContracts);
|
||||
allContracts.push(...contracts);
|
||||
startAtKey = pagination?.nextKey;
|
||||
} while (startAtKey?.length !== 0 && startAtKey !== undefined);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user