Skip to content

ref: Avoid unnecessary hub.getScope() checks #9008

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

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Sep 12, 2023

We've changed this some time ago so that hub.getScope() always returns a scope, so we can actually update our code where we still check for the existence of scope.

Noticed this will looking at some other stuff, may safe some bytes & complexity!

@mydea mydea self-assigned this Sep 12, 2023
@mydea mydea changed the title ref: Avoid unecessary hub.getScope() checks ref: Avoid unnecessary hub.getScope() checks Sep 12, 2023
We've changed this some time ago so that `hub.getScope()` _always_ returns a scope, so we can actually update our code where we still check for the existence of scope.
@mydea mydea force-pushed the fn/avoid-scope-check branch from 3b161ae to 0ba628b Compare September 12, 2023 13:18
@mydea mydea enabled auto-merge (squash) September 12, 2023 13:18
@mydea mydea merged commit a7f5911 into develop Sep 12, 2023
@mydea mydea deleted the fn/avoid-scope-check branch September 12, 2023 13:43
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