Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-unnecessary-type-assertion: extract checking of NonNullExpression #3468

Merged
merged 4 commits into from
Jan 9, 2018
Merged

no-unnecessary-type-assertion: extract checking of NonNullExpression #3468

merged 4 commits into from
Jan 9, 2018

Conversation

ajafff
Copy link
Contributor

@ajafff ajafff commented Nov 9, 2017

PR checklist

  • Addresses an existing issue: #0000
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

Overview of change:

Simplifies the logic and avoids false negatives when asserting on tuples.

In addition, this PR changes the detection of tuple types to have integer property names 0..n

Is there anything you'd like reviewers to focus on?

CHANGELOG.md entry:

[bugfix] no-unnecessary-type-assertion fixed false negatives for types with numeric keys

Simplifies the logic and avoids false negatives when asserting on tuples.

In addition, this PR changes the detection of tuple types to have integer property names 0..n

[bugfix] `no-unnecessary-type-assertion` fixed false negatives for types with numeric keys
@adidahiya adidahiya merged commit 4c29dd9 into palantir:master Jan 9, 2018
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.

None yet

2 participants