mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
Dev/crutkas/fixing warnings (#5161)
* new lines & braces * Tabs /space auto fix Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Wox.Infrastructure.Storage
|
||||
// This detail is accessed by the storage items and is used to decide if the cache must be deleted or not
|
||||
public bool clearCache = false;
|
||||
|
||||
|
||||
|
||||
private String currentPowerToysVersion = String.Empty;
|
||||
private String FilePath { get; set; } = String.Empty;
|
||||
|
||||
@@ -32,17 +32,17 @@ namespace Wox.Infrastructure.Storage
|
||||
|
||||
// If there is some error in populating/retrieving the version numbers, then the cache must be deleted
|
||||
// This case will not be hit, but is present as a fail safe
|
||||
if(String.IsNullOrEmpty(version1) || String.IsNullOrEmpty(version2))
|
||||
if (String.IsNullOrEmpty(version1) || String.IsNullOrEmpty(version2))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
string[] split1 = version1.Split( new string[] { version, period }, StringSplitOptions.RemoveEmptyEntries);
|
||||
string[] split2 = version2.Split( new string[] { version, period }, StringSplitOptions.RemoveEmptyEntries);
|
||||
string[] split1 = version1.Split(new string[] { version, period }, StringSplitOptions.RemoveEmptyEntries);
|
||||
string[] split2 = version2.Split(new string[] { version, period }, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
for(int i=0; i<versionLength; i++)
|
||||
for (int i = 0; i < versionLength; i++)
|
||||
{
|
||||
if(int.Parse(split1[i]) < int.Parse(split2[i]))
|
||||
if (int.Parse(split1[i]) < int.Parse(split2[i]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ namespace Wox.Infrastructure.Storage
|
||||
string cacheSuffix = ".cache";
|
||||
string jsonSuffix = ".json";
|
||||
|
||||
if(type == (uint)StorageType.BINARY_STORAGE)
|
||||
if (type == (uint)StorageType.BINARY_STORAGE)
|
||||
{
|
||||
suffix = cacheSuffix;
|
||||
}
|
||||
else if(type == (uint)StorageType.JSON_STORAGE)
|
||||
else if (type == (uint)StorageType.JSON_STORAGE)
|
||||
{
|
||||
suffix = jsonSuffix;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user