Skip to content

Conversation

@kblok
Copy link
Member

@kblok kblok commented Aug 30, 2023

Added Microsoft.CodeAnalysis.CSharp.CodeStyle to get some extra validations on build time.

@kblok kblok force-pushed the remove-unsued-code branch 2 times, most recently from 2543d19 to 9bda16c Compare August 30, 2023 16:58
@kblok kblok force-pushed the remove-unsued-code branch from 9bda16c to 3c7e852 Compare August 30, 2023 17:05
Comment on lines 82 to 87
if (_timeoutTimer?.Status == TaskStatus.RanToCompletion ||
_timeoutTimer?.Status == TaskStatus.Faulted ||
_timeoutTimer?.Status == TaskStatus.Canceled)
{
_timeoutTimer.Dispose();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (_timeoutTimer?.Status == TaskStatus.RanToCompletion ||
_timeoutTimer?.Status == TaskStatus.Faulted ||
_timeoutTimer?.Status == TaskStatus.Canceled)
{
_timeoutTimer.Dispose();
}
if (_timeoutTimer is { Status: TaskStatus.RanToCompletion or TaskStatus.Faulted or TaskStatus.Canceled } timeoutTimer)
{
timeoutTimer.Dispose();
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fancy!

@kblok kblok merged commit 4bf7716 into master Aug 30, 2023
@kblok kblok deleted the remove-unsued-code branch August 30, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants