1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 16:27:26 +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

@ -42,14 +42,11 @@ namespace osu.Game.Configuration
protected override bool PerformSave() protected override bool PerformSave()
{ {
lock (dirtySettings) lock (dirtySettings)
{
if (dirtySettings.Count > 0)
{ {
foreach (var setting in dirtySettings) foreach (var setting in dirtySettings)
settings.Update(setting); settings.Update(setting);
dirtySettings.Clear(); dirtySettings.Clear();
} }
}
return true; return true;
} }