Remove unnecessary null check from ConstraintCollection (dotnet/corefx#40343)
authorStephen Toub <stoub@microsoft.com>
Fri, 16 Aug 2019 15:25:21 +0000 (11:25 -0400)
committerGitHub <noreply@github.com>
Fri, 16 Aug 2019 15:25:21 +0000 (11:25 -0400)
commit597bb10a014c349e90208151b123ba1cedb71b96
tree7678fa74adf3d3e4bbfb71d4d0d3033c3422ada4
parent9885a6065860feda063ed988d7fb71a77b84999f
Remove unnecessary null check from ConstraintCollection (dotnet/corefx#40343)

`_table` will never be null.  The `ConstraintCollection` is only constructed in one place, where it's passed `this` by `DataTable`.  It's used in many other places without a guard check, as well (and later in this method, unguarded).

Commit migrated from https://github.com/dotnet/corefx/commit/f4344b0d3b45fc7c8f41e5c909ddcb2752bea0fa
src/libraries/System.Data.Common/src/System/Data/ConstraintCollection.cs