From db6308cd34f7850bc2810b5a4cae1fad47be946c Mon Sep 17 00:00:00 2001 From: danielailie Date: Tue, 1 Oct 2024 14:56:11 +0300 Subject: [PATCH] merge declaration and initialization --- src/modules/scam/nft-scam.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/scam/nft-scam.service.ts b/src/modules/scam/nft-scam.service.ts index 319dcc0d1..46c06ca67 100644 --- a/src/modules/scam/nft-scam.service.ts +++ b/src/modules/scam/nft-scam.service.ts @@ -245,8 +245,7 @@ export class NftScamService { const apiNfts = await this.mxApiService.getNftsByIdentifiers(nftsMissingFromDb?.map((x) => x.identifier)); if (!apiNfts) return; - let mappedNfts: Asset[] = []; - mappedNfts = apiNfts?.map((x) => new Asset({ ...Asset.fromNft(x), scamInfo })); + let mappedNfts: Asset[] = apiNfts?.map((x) => new Asset({ ...Asset.fromNft(x), scamInfo })); await this.updateBulkScamInfo(scamEngineVersion, mappedNfts); }