1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 03:13:21 +08:00

Remove unnecessary count check

This commit is contained in:
smoogipoo 2019-09-05 13:36:37 +09:00
parent afac512a1b
commit d40129aabe

View File

@ -43,12 +43,9 @@ namespace osu.Game.Configuration
{ {
lock (dirtySettings) lock (dirtySettings)
{ {
if (dirtySettings.Count > 0) foreach (var setting in dirtySettings)
{ settings.Update(setting);
foreach (var setting in dirtySettings) dirtySettings.Clear();
settings.Update(setting);
dirtySettings.Clear();
}
} }
return true; return true;