Skip to content

Commit

Permalink
Update Settings_Typed.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jul 25, 2024
1 parent fefc324 commit d0a1201
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Verify/Splitters/Settings_Typed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ internal static bool TryGetTypedConverter<T>(
T target,
VerifySettings settings,
[NotNullWhen(true)] out TypeConverter? converter)
where T : notnull
{
foreach (var typedConverter in typedConverters
.Where(_ => _.CanConvert(target!, settings.Context)))
.Where(_ => _.CanConvert(target, settings.Context)))
{
converter = typedConverter;
return true;
Expand Down

0 comments on commit d0a1201

Please sign in to comment.