Skip to content

Commit

Permalink
Use Contains instead of IndexOf.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jul 13, 2024
1 parent 7fe4bd6 commit 49ef3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magick.NET/Types/MagickGeometry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public MagickGeometry(string value)
else
InitializeFromAspectRation(instance, value);

_includeXyInToString = value.IndexOf("+") >= 0 || value.IndexOf("-") >= 0;
_includeXyInToString = value.Contains("+") || value.Contains("-");
}

/// <summary>
Expand Down

0 comments on commit 49ef3c1

Please sign in to comment.