mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
ReSharper: remove redundant code
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Wox.UpdateFeedGenerator
|
||||
if (string.IsNullOrEmpty(config.OutputDirectory))
|
||||
{
|
||||
config.OutputDirectory = @"Update";
|
||||
ConfigStorage.Instance.Save();
|
||||
Instance.Save();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using NAppUpdate.Framework.Utils;
|
||||
|
||||
namespace Wox.UpdateFeedGenerator
|
||||
{
|
||||
@@ -31,7 +32,7 @@ namespace Wox.UpdateFeedGenerator
|
||||
myFileInfo = new FileInfo(fileName);
|
||||
myFileVersion = FileVersionInfo.GetVersionInfo(fileName).FileVersion;
|
||||
if (myFileVersion != null) myFileVersion = myFileVersion.Replace(", ", ".");
|
||||
myHash = NAppUpdate.Framework.Utils.FileChecksum.GetSHA256Checksum(fileName);
|
||||
myHash = FileChecksum.GetSHA256Checksum(fileName);
|
||||
RelativeName = fileName.Substring(rootDirectoryLength + 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -162,9 +162,9 @@ namespace Wox.UpdateFeedGenerator
|
||||
if (fileTypesToMatch.IndexOfAny(new[] { ':', '<', '>', '/', '\\' }) >= 0) throw new ArgumentException("invalid cahracters in wildcard pattern", "fileTypesToMatch");
|
||||
|
||||
m_includeSubDirs = includeSubDirs;
|
||||
m_paths = pathsToSearch.Split(new[] { ';', ',' });
|
||||
m_paths = pathsToSearch.Split(';', ',');
|
||||
|
||||
string[] specs = fileTypesToMatch.Split(new[] { ';', ',' });
|
||||
string[] specs = fileTypesToMatch.Split(';', ',');
|
||||
m_fileSpecs = new List<Regex>(specs.Length);
|
||||
foreach (string spec in specs) {
|
||||
// trim whitespace off file spec and convert Win32 wildcards to regular expressions
|
||||
|
||||
Reference in New Issue
Block a user