Simplify logic in getBaseConstraint
Simplify logic in getBaseConstraint

RyanCavanaugh/TypeScript,alexeagle/TypeScript,kpreisser/TypeScript,SaschaNaz/TypeScript,kitsonk/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,kpreisser/TypeScript,minestarks/TypeScript,nojvek/TypeScript,minestarks/TypeScript,donaldpipowitch/TypeScript,nojvek/TypeScript,basarat/TypeScript,RyanCavanaugh/TypeScript,donaldpipowitch/TypeScript,SaschaNaz/TypeScript,microsoft/TypeScript,microsoft/TypeScript,basarat/TypeScript,SaschaNaz/TypeScript,RyanCavanaugh/TypeScript,basarat/TypeScript,donaldpipowitch/TypeScript,weswigham/TypeScript,alexeagle/TypeScript,Microsoft/TypeScript,kitsonk/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,donaldpipowitch/TypeScript,microsoft/TypeScript,nojvek/TypeScript,nojvek/TypeScript,kpreisser/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,basarat/TypeScript,minestarks/TypeScript,kitsonk/TypeScript