Skip to content

Commit 1fb1015

Browse files
farQtechIkramuddin Farooqui
and
Ikramuddin Farooqui
authored
Corrected logic to restore foreground color in ConsoleLogger.cs (#2160)
Co-authored-by: Ikramuddin Farooqui <[email protected]>
1 parent 28bf214 commit 1fb1015

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/BenchmarkDotNet/Loggers/ConsoleLogger.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ private void Write(LogKind logKind, Action<string> write, string text)
5353
}
5454
finally
5555
{
56-
if (colorBefore != Console.ForegroundColor && colorBefore != Console.BackgroundColor)
57-
Console.ForegroundColor = colorBefore;
56+
Console.ForegroundColor = colorBefore;
5857
}
5958
}
6059

0 commit comments

Comments
 (0)