mirror of https://github.com/oliverbooth/X10D
Fix CA1307 violations
This commit is contained in:
parent
e38c384f4d
commit
c27334bdc8
|
@ -227,7 +227,7 @@ public static class DictionaryExtensions
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
return value.Contains(' ') ? $"\"{value}\"" : value;
|
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
static string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
|
static string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
|
||||||
|
@ -282,7 +282,7 @@ public static class DictionaryExtensions
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
return value.Contains(' ') ? $"\"{value}\"" : value;
|
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
|
string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
|
||||||
|
@ -351,7 +351,7 @@ public static class DictionaryExtensions
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
return value.Contains(' ') ? $"\"{value}\"" : value;
|
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
|
string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
|
||||||
|
|
Loading…
Reference in New Issue