Skip to content

Commit 81733d3

Browse files
committed
fix formatting
1 parent 715aafd commit 81733d3

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Flow.Launcher.Infrastructure/PinyinAlphabet.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using System.Text;
66
using JetBrains.Annotations;
77
using Flow.Launcher.Infrastructure.UserSettings;
8-
using Microsoft.AspNetCore.Localization;
98
using ToolGood.Words.Pinyin;
109

1110
namespace Flow.Launcher.Infrastructure

Flow.Launcher.Infrastructure/StringMatcher.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ public MatchResult FuzzyMatch(string query, string stringToCompare, MatchOption
5959

6060
var fullStringToCompareWithoutCase = opt.IgnoreCase ? stringToCompare.ToLower() : stringToCompare;
6161

62-
6362
var querySubstrings = queryWithoutCase.Split(new[] {' '}, StringSplitOptions.RemoveEmptyEntries);
6463
int currentQuerySubstringIndex = 0;
6564
var currentQuerySubstring = querySubstrings[currentQuerySubstringIndex];
@@ -77,15 +76,12 @@ public MatchResult FuzzyMatch(string query, string stringToCompare, MatchOption
7776

7877
bool spaceMet = false;
7978

80-
for (var compareStringIndex = 0;
81-
compareStringIndex < fullStringToCompareWithoutCase.Length;
82-
compareStringIndex++)
79+
for (var compareStringIndex = 0; compareStringIndex < fullStringToCompareWithoutCase.Length; compareStringIndex++)
8380
{
8481
if (currentAcronymQueryIndex >= queryWithoutCase.Length
8582
|| allQuerySubstringsMatched && acronymScore < (int) UserSettingSearchPrecision)
8683
break;
8784

88-
8985
// To maintain a list of indices which correspond to spaces in the string to compare
9086
// To populate the list only for the first query substring
9187
if (fullStringToCompareWithoutCase[compareStringIndex] == ' ' && currentQuerySubstringIndex == 0)

0 commit comments

Comments
 (0)