1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 04:55:42 +00:00

Fix CA1307 violations

This commit is contained in:
Oliver Booth 2022-11-29 16:51:48 +00:00
parent e38c384f4d
commit c27334bdc8
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634

View File

@ -227,7 +227,7 @@ public static class DictionaryExtensions
return string.Empty;
}
return value.Contains(' ') ? $"\"{value}\"" : value;
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
}
static string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
@ -282,7 +282,7 @@ public static class DictionaryExtensions
return string.Empty;
}
return value.Contains(' ') ? $"\"{value}\"" : value;
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
}
string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
@ -351,7 +351,7 @@ public static class DictionaryExtensions
return string.Empty;
}
return value.Contains(' ') ? $"\"{value}\"" : value;
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
}
string GetQueryParameter(KeyValuePair<TKey, TValue> pair)