Skip to content

Conversation

@rictic
Copy link
Contributor

@rictic rictic commented Mar 2, 2019

This is the result of turning on the no-unnecessary-type-assertion tslint pass and running --fix. There was one place where I disabled this pass where we needed ! to note that a variable was definitely assigned to before it was read.

I like this lint pass because it makes the code a bit easier to read and understand. I will admit though that I'm proposing this change because we use this lint pass downstream, and it's annoying seeing the lint warnings.

rictic added 2 commits March 2, 2019 12:02
This is the result of turning on the no-unnecessary-type-assertion tslint pass and running `--fix`. There was one place where I disabled this pass where we needed `!` to note that a variable was definitely  assigned to before it was read.

I like this lint pass because it makes the code a bit easier to read and understand. I will admit though that I'm proposing this change because we use this lint pass downstream, and it's annoying seeing the lint warnings.
@rictic rictic merged commit fd31a97 into master Mar 2, 2019
@rictic rictic deleted the remove-unnecessary-type-assertions branch March 2, 2019 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants