Skip to content

Commit abc4e44

Browse files
committed
Moved return true out of if
1 parent 4563eaa commit abc4e44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MaterialDesignThemes.Wpf/PaletteHelper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,13 @@ private static bool ReplaceEntry(object entryName, object newValue, ResourceDict
141141
Duration = new Duration(new TimeSpan(0,0,0,0,DURATION_MS))
142142
};
143143
(parentDictionary[entryName] as Brush).BeginAnimation(SolidColorBrush.ColorProperty, animation); //Begin the animation
144-
return true;
144+
145145
}
146146
else
147147
{
148148
parentDictionary[entryName] = newValue;
149149
}
150+
return true;
150151
}
151152
foreach (var dictionary in parentDictionary.MergedDictionaries)
152153
if (ReplaceEntry(entryName, newValue, dictionary))

0 commit comments

Comments
 (0)