From c2a420a291440d33a6e3a618ce7eabd913e3f9f7 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sun, 14 Nov 2021 20:09:15 -0800 Subject: [PATCH] Fix typo: "Prioriy" -> "Priority" (#3103) --- BTCPayServer.Rating/RateRules.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer.Rating/RateRules.cs b/BTCPayServer.Rating/RateRules.cs index 9dec2bac1..42228207d 100644 --- a/BTCPayServer.Rating/RateRules.cs +++ b/BTCPayServer.Rating/RateRules.cs @@ -161,7 +161,7 @@ namespace BTCPayServer.Rating public ExpressionSyntax FindBestCandidate(CurrencyPair p) { var invP = p.Inverse(); - var candidates = new List<(CurrencyPair Pair, int Prioriy, ExpressionSyntax Expression, bool Inverse)>(); + var candidates = new List<(CurrencyPair Pair, int Priority, ExpressionSyntax Expression, bool Inverse)>(); foreach (var pair in new[] { (Pair: p, Priority: 0, Inverse: false), @@ -181,7 +181,7 @@ namespace BTCPayServer.Rating if (candidates.Count == 0) return CreateExpression($"ERR_NO_RULE_MATCH({p})"); var best = candidates - .OrderBy(c => c.Prioriy) + .OrderBy(c => c.Priority) .ThenBy(c => c.Expression.Span.Start) .First(); return best.Inverse