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:
parent
afac512a1b
commit
d40129aabe
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user