Skip to content

Commit 3e72613

Browse files
committed
Fix argument check.
1 parent 0a97e23 commit 3e72613

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/MySqlConnector/MySqlClient/Caches/NormalizedSchema.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ internal static NormalizedSchema MustNormalize(string name, string defaultSchema
1717
{
1818
var normalized = new NormalizedSchema(name, defaultSchema);
1919
if (normalized.Component == null)
20-
throw new ArgumentException("Could not determine function/procedure name", name);
21-
if (normalized.Component == null)
22-
throw new ArgumentException("Could not determine schema", name);
20+
throw new ArgumentException("Could not determine function/procedure name", nameof(name));
21+
if (normalized.Schema == null)
22+
throw new ArgumentException("Could not determine schema", nameof(defaultSchema));
2323
return normalized;
2424
}
2525

@@ -53,4 +53,4 @@ public NormalizedSchema(string name, string defaultSchema=null)
5353

5454
internal string FullyQualified => $"`{Schema}`.`{Component}`";
5555
}
56-
}
56+
}

0 commit comments

Comments
 (0)