-
Notifications
You must be signed in to change notification settings - Fork 279
Closed
Labels
Description
Several instances of the code in the 2.0.0 branch can be simplified from
if (string.IsNullOrEmpty(referenceId))
{
Utils.CheckArgumentNullOrEmpty(referenceId);
}to this
Utils.CheckArgumentNullOrEmpty(referenceId);as CheckArgumentNullOrEmpty checks if the string is null or empty again before throwing.
Some examples can be found below
if (string.IsNullOrEmpty(referenceId)) if (string.IsNullOrEmpty(referenceId)) OpenAPI.NET/src/Microsoft.OpenApi/Models/References/OpenApiRequestBodyReference.cs
Line 43 in 264226b
if (string.IsNullOrEmpty(referenceId)) if (string.IsNullOrEmpty(referenceId)) if (string.IsNullOrEmpty(referenceId))
MaggieKimani1