Skip to content

fix a bug in resolveVariables util function#1488

Merged
bobbrow merged 1 commit into
masterfrom
bobbrow/triple-equals-fixes
Jan 24, 2018
Merged

fix a bug in resolveVariables util function#1488
bobbrow merged 1 commit into
masterfrom
bobbrow/triple-equals-fixes

Conversation

@bobbrow

@bobbrow bobbrow commented Jan 24, 2018

Copy link
Copy Markdown
Member

The change to triple equals had an unintended side effect for this utility function. We should look for other potential regressions, but I need this now to get the language server unblocked.

@WardenGnaw

Copy link
Copy Markdown
Member

Possibility anything that was comparing to null/undefined.

@sean-mcmanus

Copy link
Copy Markdown
Contributor

This article recommends avoiding using null: https://medium.com/@basarat/null-vs-undefined-in-typescript-land-dc0c7a5f240a .

@WardenGnaw

Copy link
Copy Markdown
Member

I think anywhere where we have === or !== to null or undefined we can just check to see if it is a Truthy or Falsey class.

@bobbrow bobbrow merged commit 510094a into master Jan 24, 2018
@bobbrow bobbrow deleted the bobbrow/triple-equals-fixes branch January 31, 2018 22:30
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 15, 2020
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.

3 participants