mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-06 21:35:48 +08:00
fix some nullability issues
This commit is contained in:
committed by
Patrik Svensson
parent
79742ce9e3
commit
e71db7f78c
@@ -127,10 +127,7 @@ namespace Spectre.Console
|
||||
lock (_lock)
|
||||
{
|
||||
var now = DateTime.Now;
|
||||
if (StartTime == null)
|
||||
{
|
||||
StartTime = now;
|
||||
}
|
||||
StartTime ??= now;
|
||||
|
||||
StopTime = now;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user