Simplify logic in checkTypeRelatedTo
Simplify logic in checkTypeRelatedTo

chuckjaz/TypeScript,weswigham/TypeScript,minestarks/TypeScript,SaschaNaz/TypeScript,TukekeSoft/TypeScript,Microsoft/TypeScript,donaldpipowitch/TypeScript,mihailik/TypeScript,synaptek/TypeScript,weswigham/TypeScript,SaschaNaz/TypeScript,nojvek/TypeScript,basarat/TypeScript,kitsonk/TypeScript,TukekeSoft/TypeScript,kpreisser/TypeScript,minestarks/TypeScript,kpreisser/TypeScript,donaldpipowitch/TypeScript,thr0w/Thr0wScript,donaldpipowitch/TypeScript,DLehenbauer/TypeScript,basarat/TypeScript,DLehenbauer/TypeScript,TukekeSoft/TypeScript,jwbay/TypeScript,mihailik/TypeScript,chuckjaz/TypeScript,alexeagle/TypeScript,erikmcc/TypeScript,synaptek/TypeScript,synaptek/TypeScript,mihailik/TypeScript,chuckjaz/TypeScript,alexeagle/TypeScript,thr0w/Thr0wScript,nojvek/TypeScript,RyanCavanaugh/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,Eyas/TypeScript,chuckjaz/TypeScript,thr0w/Thr0wScript,thr0w/Thr0wScript,jwbay/TypeScript,donaldpipowitch/TypeScript,basarat/TypeScript,jeremyepling/TypeScript,jwbay/TypeScript,nojvek/TypeScript,Eyas/TypeScript,DLehenbauer/TypeScript,DLehenbauer/TypeScript,jwbay/TypeScript,Eyas/TypeScript,microsoft/TypeScript,mihailik/TypeScript,jeremyepling/TypeScript,basarat/TypeScript,weswigham/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,microsoft/TypeScript,erikmcc/TypeScript,nojvek/TypeScript,kitsonk/TypeScript,erikmcc/TypeScript,kpreisser/TypeScript,synaptek/TypeScript,RyanCavanaugh/TypeScript,Eyas/TypeScript,Microsoft/TypeScript,jeremyepling/TypeScript,SaschaNaz/TypeScript,erikmcc/TypeScript,Microsoft/TypeScript,minestarks/TypeScript