Skip to content

Commit

Permalink
removes unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TinaHeiligers committed May 19, 2021
1 parent 4bae603 commit 2f4b729
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -679,11 +679,7 @@ function wrapWithTry(

return { transformedDoc: result, additionalDocs: [] };
} catch (error) {
const failedTransform = `${type.name}:${version}`;
const failedDoc = JSON.stringify(doc);
log.error(error);
// To make debugging failed migrations easier, we add items needed to convert the
// saved object id to the full raw id (the id only contains the uuid part) and the full error itself
throw new TransformSavedObjectDocumentError(error);
}
};
Expand Down

0 comments on commit 2f4b729

Please sign in to comment.