Skip to content

Commit

Permalink
Tiny nullability corrections (#24389)
Browse files Browse the repository at this point in the history
  • Loading branch information
roji authored Mar 13, 2021
1 parent ed2b50d commit 4504fbf
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public virtual string? ConnectionString
/// <returns> A new instance with the option changed. </returns>
public virtual RelationalOptionsExtension WithConnectionString([CanBeNull] string? connectionString)
{
Check.NotEmpty(connectionString, nameof(connectionString));
Check.NullButNotEmpty(connectionString, nameof(connectionString));

var clone = Clone();

Expand All @@ -118,10 +118,8 @@ public virtual DbConnection? Connection
/// </summary>
/// <param name="connection"> The option to change. </param>
/// <returns> A new instance with the option changed. </returns>
public virtual RelationalOptionsExtension WithConnection([NotNull] DbConnection connection)
public virtual RelationalOptionsExtension WithConnection([CanBeNull] DbConnection? connection)
{
Check.NotNull(connection, nameof(connection));

var clone = Clone();

clone._connection = connection;
Expand Down

0 comments on commit 4504fbf

Please sign in to comment.