From 50070be3b1c5ef657c61744a4f8d4dbdf033e7c4 Mon Sep 17 00:00:00 2001 From: rampaa Date: Fri, 22 Dec 2023 22:45:25 +0300 Subject: [PATCH] Minor --- JL.Core/Lookup/LookupUtils.cs | 2 +- JL.Windows/Utilities/PopupWindowUtils.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/JL.Core/Lookup/LookupUtils.cs b/JL.Core/Lookup/LookupUtils.cs index 931628e5..b9e0dc80 100644 --- a/JL.Core/Lookup/LookupUtils.cs +++ b/JL.Core/Lookup/LookupUtils.cs @@ -320,7 +320,7 @@ private static List SortLookupResults(IEnumerable lo { return 0; } - else if (roi is "ok" or "ik" or "rk") + if (roi is "ok" or "ik" or "rk") { return 2; } diff --git a/JL.Windows/Utilities/PopupWindowUtils.cs b/JL.Windows/Utilities/PopupWindowUtils.cs index df2345a9..8feecb61 100644 --- a/JL.Windows/Utilities/PopupWindowUtils.cs +++ b/JL.Windows/Utilities/PopupWindowUtils.cs @@ -85,7 +85,7 @@ public static string ReadingsToText(string[] readings, string[]?[] rOrthographyI return sb.ToString(); } - public static string AlternativeSpellingsToText(string[] alternativeSpellings, string[]?[]? aOrthographyInfoList) + public static string AlternativeSpellingsToText(string[] alternativeSpellings, string[]?[] aOrthographyInfoList) { StringBuilder sb = new(); @@ -95,7 +95,7 @@ public static string AlternativeSpellingsToText(string[] alternativeSpellings, s { _ = sb.Append(alternativeSpellings[index]); - if (index < aOrthographyInfoList?.Length) + if (index < aOrthographyInfoList.Length) { string[]? aOrthographyInfo = aOrthographyInfoList[index]; if (aOrthographyInfo is not null)