Resolve CA2249 inspections

"Use `string.Contains` instead of `string.IndexOf` to improve
readability"
This commit is contained in:
Bartłomiej Dach
2020-11-01 18:54:44 +01:00
parent 89bf7b1bd6
commit 3090b6ccb5
4 changed files with 4 additions and 4 deletions

View File

@ -347,7 +347,7 @@ namespace osu.Game.Beatmaps.Formats
/// <param name="line">The line which may contains variables.</param>
private void decodeVariables(ref string line)
{
while (line.IndexOf('$') >= 0)
while (line.Contains('$'))
{
string origLine = line;