Skip to content

Commit

Permalink
[ML] Add comment to clarify destructuring.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Sep 10, 2020
1 parent cd3703a commit 221c920
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export default ({ getService }: FtrProviderContext) => {
};

function getTransformPreviewConfig() {
const { dest, ...config } = generateTransformConfig('the-dummy-id');
// passing in an empty string for transform id since we will not use
// it as part of the config request schema. Destructuring will
// remove the `dest` part of the config.
const { dest, ...config } = generateTransformConfig('');
return config as PostTransformsPreviewRequestSchema;
}

Expand Down

0 comments on commit 221c920

Please sign in to comment.