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

Apps: use consistent style across WebWorker scripts #876

Merged
merged 1 commit into from
May 29, 2019

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented May 29, 2019

Tries to apply a consistent style across the WebWorker scripts.

I liked leaving the return nextState at the end previously, because it was easy to add debugging logs, but this is still fairly easy to do by piping a tap() operator.

@sohkai sohkai requested a review from 2color May 29, 2019 13:49
Copy link
Contributor

@2color 2color left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for keeping an eye out for consistency

I liked leaving the return nextState at the end previously, because it was easy to add debugging logs,

Now I understand. I like the early returns for code clarity. It saves times from having to double check further mutations.

@sohkai sohkai merged commit db03211 into master May 29, 2019
@sohkai sohkai deleted the apps-scripts-style branch May 29, 2019 15:05
MickdeGraaf pushed a commit to MickdeGraaf/aragon-apps that referenced this pull request Jan 28, 2020
ramilexe pushed a commit to ConsiderItDone/aragon-apps that referenced this pull request Dec 9, 2021
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

Successfully merging this pull request may close these issues.

2 participants