remove unnecesary class condition and avoid complexity warnings
remove unnecesary class condition and avoid complexity warnings

bdragan/takes,georgeyanev/takes,hs3180/takes,yegor256/takes,erimerturk/takes,dalifreire/takes,mstzn36/takes,hs3180/takes,essobedo/takes,ikhvostenkov/takes,xupyprmv/takes,dalifreire/takes,erimerturk/takes,pecko/takes,antonini/takes,RamIndani/takes,georgeyanev/takes,essobedo/takes,Bertram25/takes,pecko/takes,RamIndani/takes,ikhvostenkov/takes,simonjenga/takes,mstzn36/takes,yegor256/takes,xupyprmv/takes,simonjenga/takes,bdragan/takes,antonini/takes,Bertram25/takes