mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
fixing all warnings and info for infra (#5891)
This commit is contained in:
@@ -88,8 +88,8 @@ namespace Wox.Infrastructure
|
||||
_pinyinStorage.Save(GetPinyinCacheAsDictionary());
|
||||
}
|
||||
|
||||
private static string[] EmptyStringArray = new string[0];
|
||||
private static string[][] Empty2DStringArray = new string[0][];
|
||||
private static readonly string[] _emptyStringArray = new string[0];
|
||||
private static readonly string[][] _empty2DStringArray = new string[0][];
|
||||
|
||||
/// <summary>
|
||||
/// replace chinese character with pinyin, non chinese character won't be modified
|
||||
@@ -100,7 +100,7 @@ namespace Wox.Infrastructure
|
||||
{
|
||||
if (!_settings.ShouldUsePinyin)
|
||||
{
|
||||
return EmptyStringArray;
|
||||
return _emptyStringArray;
|
||||
}
|
||||
|
||||
var pinyin = word.Select(c =>
|
||||
@@ -122,7 +122,7 @@ namespace Wox.Infrastructure
|
||||
{
|
||||
if (!_settings.ShouldUsePinyin || string.IsNullOrEmpty(characters))
|
||||
{
|
||||
return Empty2DStringArray;
|
||||
return _empty2DStringArray;
|
||||
}
|
||||
|
||||
if (!_pinyinCache.ContainsKey(characters))
|
||||
@@ -181,7 +181,7 @@ namespace Wox.Infrastructure
|
||||
{
|
||||
if (!_settings.ShouldUsePinyin)
|
||||
{
|
||||
return EmptyStringArray;
|
||||
return _emptyStringArray;
|
||||
}
|
||||
|
||||
var combination = (
|
||||
|
||||
Reference in New Issue
Block a user