DEV Community

Discussion on: Code Smell 23 - Instance Type Checking

Collapse
pedrohasantiago profile image
Pedro S

The sample in the "right" section is checking the types. The wrong and right samples are inverted, no?

Collapse
mcsee profile image
Maxi Contieri Author

hmm. not

Lines 1 to 9 are commented since they should not be done at all.
The rest is not checking any type as soon as I can see

Collapse
pedrohasantiago profile image
Pedro S

Oh, it is all good now. Weird, I could swear the snippets were inverted, sorry 🤔

Congrats on the series, the posts are great!