Skip to content
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

Refactor Idea: Factor out common substring #34

Open
hediet opened this issue Jul 2, 2022 · 1 comment
Open

Refactor Idea: Factor out common substring #34

hediet opened this issue Jul 2, 2022 · 1 comment

Comments

@hediet
Copy link

hediet commented Jul 2, 2022

return name ? `From Event: ${name}` : 'From Event';

->

return 'From Event' + (name ? `: ${name}` + '');
@lgrammel
Copy link
Contributor

lgrammel commented Jul 5, 2022

This will most likely require a sequence of refactoring steps.

The outcome could be:

return `From Event${name ? `: ${name}` : ''}`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants