mirror of https://github.com/ppy/osu
code quality
This commit is contained in:
parent
def6da98fc
commit
dd69089117
|
@ -92,7 +92,6 @@ public void ExportFileWithSuperLongNameMultipleTimesTest()
|
|||
|
||||
private void exportItemAndAssert(TestRealmObject item, string expectedName)
|
||||
{
|
||||
// ReSharper disable once AsyncVoidLambda
|
||||
Assert.DoesNotThrow(() =>
|
||||
{
|
||||
Task t = Task.Run(() => legacyExporter.ExportAsync(new TestRealmLive(item)));
|
|
@ -107,7 +107,7 @@ public async Task<bool> ExportAsync(Live<TModel> model, CancellationToken cancel
|
|||
.GetFiles(string.Empty, $"{itemFilename}*{FileExtension}")
|
||||
.Concat(exportStorage.GetDirectories(string.Empty));
|
||||
string filename = NamingUtils.GetNextBestFilename(existingExports, $"{itemFilename}{FileExtension}");
|
||||
bool success = false;
|
||||
bool success;
|
||||
|
||||
ProgressNotification notification = new ProgressNotification
|
||||
{
|
||||
|
|
|
@ -13,7 +13,8 @@ namespace osu.Game.Database
|
|||
{
|
||||
public class LegacyScoreExporter : LegacyModelExporter<ScoreInfo>
|
||||
{
|
||||
public LegacyScoreExporter(Storage storage) : base(storage)
|
||||
public LegacyScoreExporter(Storage storage)
|
||||
: base(storage)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,8 @@ namespace osu.Game.Database
|
|||
{
|
||||
public class LegacySkinExporter : LegacyArchiveExporter<SkinInfo>
|
||||
{
|
||||
public LegacySkinExporter(Storage storage) : base(storage)
|
||||
public LegacySkinExporter(Storage storage)
|
||||
: base(storage)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue