Skip to content

Commit

Permalink
Merge pull request #2203 from MarkEnverus/hfix/issue-2202
Browse files Browse the repository at this point in the history
remove-invalid-loop
  • Loading branch information
JoshClose authored Jan 24, 2024
2 parents 3924fa6 + 5cde6f6 commit 52f2c9e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/CsvHelper/Configuration/ConfigurationFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ public static void HeaderValidated(HeaderValidatedArgs args)

if (args.Context.Reader.HeaderRecord != null)
{
foreach (var header in args.Context.Reader.HeaderRecord)
{
errorMessage.AppendLine($"Headers: '{string.Join("', '", args.Context.Reader.HeaderRecord)}'");
}
errorMessage.AppendLine($"Headers: '{string.Join("', '", args.Context.Reader.HeaderRecord)}'");
}

var messagePostfix =
Expand Down Expand Up @@ -146,7 +143,7 @@ public static bool ShouldUseConstructorParameters(ShouldUseConstructorParameters
}

/// <summary>
/// Returns the type's constructor with the most parameters.
/// Returns the type's constructor with the most parameters.
/// If two constructors have the same number of parameters, then
/// there is no guarantee which one will be returned. If you have
/// that situation, you should probably implement this function yourself.
Expand Down

0 comments on commit 52f2c9e

Please sign in to comment.