Inspectopedia
 
2024.3

Non-idiomatic 'is' type check for an object

Info
New
Last modified: 03 December 2024

Reports non-idiomatic is type checks for an object.

It's recommended to replace such checks with reference comparison.

Example:

After the quick-fix is applied: