Description
UseGuard.Positive() instead of verbose positive-check and throw patterns.
Bad Code
Good Code
Properties
- Category: Roslyn Utilities
- Severity: Warning
- Enabled by default: True
- Code fix available: True
Guard.Positive() instead of verbose positive-check and throw patterns.