Skip to content

Commit 26950a7

Browse files
committed
Remove goto
1 parent 67a4687 commit 26950a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/PaletteHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ private static bool ReplaceEntry(object entryName, object newValue, ResourceDict
148148
catch
149149
{
150150
System.Diagnostics.Debug.WriteLine(@"The argument :" + nameof(newValue) + " is not a brush.");
151-
goto setval; //Set the value normally if type is incorrect
151+
parentDictionary[entryName] = newValue; //Set the value normally if type is incorrect
152152
}
153153
}
154154
else
155-
setval: parentDictionary[entryName] = newValue; //Set value normally
155+
parentDictionary[entryName] = newValue; //Set value normally
156156
return true;
157157
}
158158
foreach (var dictionary in parentDictionary.MergedDictionaries)

0 commit comments

Comments
 (0)