Skip to content

Commit

Permalink
feat: remove useless code
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <[email protected]>
  • Loading branch information
SuZhou-Joe committed Mar 3, 2024
1 parent 7b368fd commit aa49775
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/core/server/saved_objects/import/validate_references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ export async function getNonExistingReferenceAsKeys(
}

// Fetch references to see if they exist
const bulkGetOpts = Array.from(collector.values()).map((obj) => ({
...obj,
fields: ['id'],
}));
const bulkGetOpts = Array.from(collector.values()).map((obj) => ({ ...obj, fields: ['id'] }));
const bulkGetResponse = await savedObjectsClient.bulkGet(bulkGetOpts, { namespace });

// Error handling
Expand Down

0 comments on commit aa49775

Please sign in to comment.