mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Reformat code
This commit is contained in:
parent
42b2c32222
commit
d469748612
@ -438,10 +438,14 @@ namespace osu.Game.Database
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
return Task.Factory.StartNew(() => {
|
||||
try {
|
||||
return Task.Factory.StartNew(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
Import(stable.GetDirectories(ImportFromStablePath).Select(f => stable.GetFullPath(f)).ToArray());
|
||||
} catch (DirectoryNotFoundException) {
|
||||
}
|
||||
catch (DirectoryNotFoundException)
|
||||
{
|
||||
// This handles situations like when the user does not have a Skins folder
|
||||
// which would have this exception thrown from stable.GetDirectories
|
||||
Logger.Log("No " + ImportFromStablePath + " folder available in osu!stable installation", LoggingTarget.Information, LogLevel.Error);
|
||||
|
Loading…
Reference in New Issue
Block a user