Reformat code

This commit is contained in:
Paul Teng 2018-09-15 09:53:59 -04:00
parent 42b2c32222
commit d469748612
1 changed files with 7 additions and 3 deletions

View File

@ -438,10 +438,14 @@ public Task ImportFromStableAsync()
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);