removing redundant boolean comparisons (closes #124)

This should have `WellKnownDiagnosticTags.Unnecessary`.