Skip to content

Commit

Permalink
Fix CA1307 violations
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Nov 29, 2022
1 parent e38c384 commit c27334b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions X10D/src/Collections/DictionaryExtensions.cs
Expand Up @@ -227,7 +227,7 @@ static string SanitizeValue(string? value)
return string.Empty;
}

return value.Contains(' ') ? $"\"{value}\"" : value;
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
}

static string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
Expand Down Expand Up @@ -282,7 +282,7 @@ static string SanitizeValue(string? value)
return string.Empty;
}

return value.Contains(' ') ? $"\"{value}\"" : value;
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
}

string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
Expand Down Expand Up @@ -351,7 +351,7 @@ static string SanitizeValue(string? value)
return string.Empty;
}

return value.Contains(' ') ? $"\"{value}\"" : value;
return value.Contains(' ', StringComparison.Ordinal) ? $"\"{value}\"" : value;
}

string GetQueryParameter(KeyValuePair<TKey, TValue> pair)
Expand Down

0 comments on commit c27334b

Please sign in to comment.