MINOR: equality check consistency

Updated all equality checks to use double equals (==) for consistency.