Skip to content

Commit

Permalink
Simplified condition operators
Browse files Browse the repository at this point in the history
  • Loading branch information
garora committed Aug 18, 2013
1 parent 5274754 commit fe6125b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public override bool Equals(object compareObject)
if (compareObject == null && ItemValue == null)
return true;

return compareObject != null ? ItemValue.Equals(compareObject.ToString()) : ItemValue.Equals(null);
return compareObject != null && ItemValue.Equals(compareObject.ToString());
}

public override int GetHashCode()
Expand Down

0 comments on commit fe6125b

Please sign in to comment.