refactor: consolidate duplicate if (isNew) checks (S2589)

This commit is contained in:
Miha Kralj
2026-01-26 20:17:13 -08:00
parent 13a895b6b6
commit 8ac15f1efa
5 changed files with 17 additions and 37 deletions
+1 -5
View File
@@ -66,17 +66,13 @@ public sealed class Mgdi : AbstractBase
if (isNew)
{
_p_state = _state;
_state.Count++;
}
else
{
_state = _p_state;
}
if (isNew)
{
_state.Count++;
}
double price = input.Value;
if (!double.IsFinite(price))
{