Version 7.5.0.6605
The following function triggers rule S2583 with a claim the “if” always returns false. It returns true if s == “blah”
private void func(string s)
{
if (s?.Equals("blah", StringComparison.OrdinalIgnoreCase) ?? false)
{
doSomething(s);
}
}