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 the liveUser check #18

Open
joshuajhun opened this issue Nov 7, 2017 · 1 comment
Open

refactor the liveUser check #18

joshuajhun opened this issue Nov 7, 2017 · 1 comment

Comments

@joshuajhun
Copy link

if (liveUser) {
userCompetitions(comp, activeUser);

you might want to consider having a middle function that determines if a live user is available and where to go from there.

@lfinney
Copy link
Owner

lfinney commented Nov 8, 2017

Made this and the subsequent functions it calls into one line function using a ternary.

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