Skip to content

Commit 9935ffa

Browse files
committed
// 2022Q1
1 parent 210a051 commit 9935ffa

File tree

375 files changed

+4963
-3758
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

375 files changed

+4963
-3758
lines changed

BitCutStudios.CorpusExplorer/Addon/AddonHost.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,10 @@ public IAddon GetAddonBy(string guid)
5959
/// </summary>
6060
public IHostWindow Window { get; }
6161

62-
private static string GetDirectoryPath(string directory)
63-
{
64-
return string.IsNullOrEmpty(directory)
65-
? Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
66-
: directory;
67-
}
62+
private static string GetDirectoryPath(string directory) =>
63+
string.IsNullOrEmpty(directory)
64+
? Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
65+
: directory;
6866

6967
/// <summary>
7068
/// Sucht in einem Verzeichnis nach Dateien die Addon
@@ -146,7 +144,7 @@ public void SearchInDirectoryForAddons(string directory = null, string searchPat
146144
InMemoryErrorConsole.Log(ex);
147145
}
148146

149-
addons.Sort((x, y) => (byte) x.LoadPriority - (byte) y.LoadPriority);
147+
addons.Sort((x, y) => (byte)x.LoadPriority - (byte)y.LoadPriority);
150148
_addons = addons;
151149
}
152150

@@ -158,7 +156,7 @@ public void ShutDown()
158156
{
159157
try
160158
{
161-
_addons.Sort((x, y) => (byte) y.LoadPriority - (byte) x.LoadPriority);
159+
_addons.Sort((x, y) => (byte)y.LoadPriority - (byte)x.LoadPriority);
162160

163161
var ts = _addons.Select(addon =>
164162
{

BitCutStudios.CorpusExplorer/BitCutStudios.CorpusExplorer.csproj

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

BitCutStudios.CorpusExplorer/Crawler/Helper/CrawlerDictionaryExtension.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@ public static string ComputeHash(this Dictionary<string, string> document)
1616
string hash;
1717
var bytes = GetBytes(document);
1818

19-
using (var md5 = MD5.Create())
20-
{
21-
hash = Convert.ToBase64String(md5.ComputeHash(bytes));
22-
}
19+
using (var md5 = MD5.Create()) hash = Convert.ToBase64String(md5.ComputeHash(bytes));
2320

2421
hash += "|";
2522

26-
using (var sha1 = SHA1.Create())
27-
{
28-
hash += Convert.ToBase64String(sha1.ComputeHash(bytes));
29-
}
23+
using (var sha1 = SHA1.Create()) hash += Convert.ToBase64String(sha1.ComputeHash(bytes));
3024

3125
return hash;
3226
}

0 commit comments

Comments
 (0)