Skip to content

Commit dc672d0

Browse files
committed
Apply CoPilot suggestion of simplifying code
1 parent 437108d commit dc672d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/libraries/Microsoft.Extensions.Logging.Abstractions/src/FormattedLogValues.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ public FormattedLogValues(string? format, params object?[]? values)
7070
{
7171
return new KeyValuePair<string, object?>("{OriginalFormat}", _originalMessage);
7272
}
73-
else
74-
{
75-
throw new IndexOutOfRangeException();
76-
}
73+
74+
throw new IndexOutOfRangeException();
7775
}
7876
else
7977
{

0 commit comments

Comments
 (0)