mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Misc string comparison optimizations
This commit is contained in:
@@ -1536,12 +1536,12 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
if (!File.Exists(filePath)) {
|
||||
return new Dictionary<string, string>(0);
|
||||
return new Dictionary<string, string>(0, StringComparer.Ordinal);
|
||||
}
|
||||
|
||||
try {
|
||||
Dictionary<string, string> keys = new Dictionary<string, string>();
|
||||
Dictionary<string, string> keys = new Dictionary<string, string>(StringComparer.Ordinal);
|
||||
|
||||
try {
|
||||
using (StreamReader reader = new StreamReader(filePath)) {
|
||||
string line;
|
||||
|
||||
@@ -1570,13 +1570,13 @@ namespace ArchiSteamFarm {
|
||||
keys[key] = name;
|
||||
}
|
||||
}
|
||||
|
||||
return keys;
|
||||
} catch (Exception e) {
|
||||
ArchiLogger.LogGenericException(e);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
return keys;
|
||||
}
|
||||
|
||||
private void HandleCallbacks() {
|
||||
|
||||
Reference in New Issue
Block a user