Skip to content

Commit

Permalink
Fix .NET 7 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Nov 30, 2023
1 parent 88d6d1f commit 3ef36ae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public IndicShaper(ScriptClass script, Tag unicodeScriptTag, TextOptions textOpt
{
this.textOptions = textOptions;

if (IndicConfigurations.ContainsKey(script))
if (IndicConfigurations.TryGetValue(script, out ShapingConfiguration value))
{
this.indicConfiguration = IndicConfigurations[script];
this.indicConfiguration = value;
}
else
{
Expand Down

0 comments on commit 3ef36ae

Please sign in to comment.