Skip to content

Commit

Permalink
style: apply fixes from CodeFactor (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seddryck authored Aug 22, 2024
1 parent b0cdc2c commit 77e1cc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Streamistry.Core/Pipes/Aggregators/Median.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -37,7 +37,7 @@ public MedianState<T> Append(T? value)
var right = list.ElementAt((count) / 2);
if (left == right)
return left;
return (left / T.CreateChecked(2) + right / T.CreateChecked(2));
return ((left / T.CreateChecked(2)) + (right / T.CreateChecked(2)));
}

public static readonly MedianState<T> @Default = new();
Expand Down

0 comments on commit 77e1cc2

Please sign in to comment.