-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: pass variables into a function #16291
Conversation
const config = transform( | ||
TELEGRAF_OUTPUT, | ||
Object.assign({}, OUTPUT_DEFAULTS, {}) | ||
Object.assign({}, OUTPUT_DEFAULTS, { | ||
server, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the actual magic
const config = transform( | ||
TELEGRAF_OUTPUT, | ||
Object.assign({}, OUTPUT_DEFAULTS, {}) | ||
Object.assign({}, OUTPUT_DEFAULTS, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting that this isn't being destructured, might be worth considering when thinking about patterns @ebb-tide.
also, it looks like there's an extra space in indentation below, i think you'll need to run prettier:fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont understand
Closes #16290
just looks like the template function wasn't being passed variables. also took time to normalize some internal state while rummaging around in there.