Skip to content

getSwitchClauseTypes: exit early if getTypeOfSwitchClause is undefined#16865

Merged
1 commit merged into
masterfrom
getSwitchClauseTypes
Jul 12, 2017
Merged

getSwitchClauseTypes: exit early if getTypeOfSwitchClause is undefined#16865
1 commit merged into
masterfrom
getSwitchClauseTypes

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Jun 30, 2017

Previously we would collect the entire array, then iterate over the result and throw it away if anything was undefined.
Might consider adding a mapOrGiveUp helper if this pattern appears in many places.

@ghost ghost requested a review from yuit June 30, 2017 17:12
@ghost ghost requested a review from sandersn July 12, 2017 14:33
@ghost ghost merged commit 815af7d into master Jul 12, 2017
@ghost ghost deleted the getSwitchClauseTypes branch July 12, 2017 14:45
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants