Skip to content

Commit

Permalink
Merge pull request #3149 from klickverbot/trivial-null-check
Browse files Browse the repository at this point in the history
[trivial] Remove tautological null check.
  • Loading branch information
yebblies committed Jan 25, 2014
2 parents 815d5bc + afef32c commit 019ee02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/func.c
Expand Up @@ -3425,7 +3425,7 @@ bool FuncDeclaration::parametersIntersect(Type *t)
}
if (AggregateDeclaration *ad = isCtorDeclaration() ? NULL : isThis())
{
Type *tthis = ad ? ad->getType()->addMod(tf->mod) : NULL;
Type *tthis = ad->getType()->addMod(tf->mod);
//printf("\ttthis = %s\n", tthis->toChars());
if (traverseIndirections(tthis, t))
return false;
Expand Down

0 comments on commit 019ee02

Please sign in to comment.