You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
Remove this unnecessary not-null assertion. (no-useless-cast)tslint(1)
Expected behavior
tslint-sonarts should not give the warning because if I remove not null assertion operator ! the warning is gone but TypeScript fails to compile the code with the error:
error TS2532: Object is possibly 'undefined'.
const y = m.get("y").length;
The text was updated successfully, but these errors were encountered:
I want to report a bug.
Node.js version: 11.11.0
TypeScript version: 3.3.3333
tslint-sonarts version and used IDE: 1.9.0 Visual Studio Code latest
TSLint version: 5.14.0
Rule key: no-useless-cast
Reproducer
Logs
Expected behavior
tslint-sonarts
should not give the warning because if I remove not null assertion operator!
the warning is gone but TypeScript fails to compile the code with the error:The text was updated successfully, but these errors were encountered: