Allow undeleting scores if their beatmap exists

This commit is contained in:
smoogipoo 2019-09-20 19:55:59 +09:00
parent ff2f3cde02
commit c89c092b98
1 changed files with 0 additions and 2 deletions

View File

@ -56,8 +56,6 @@ protected override ScoreInfo CreateModel(ArchiveReader archive)
}
}
protected override bool CanUndelete(ScoreInfo existing, ScoreInfo import) => false;
protected override IEnumerable<string> GetStableImportPaths(Storage stableStorage)
=> stableStorage.GetFiles(ImportFromStablePath).Where(p => HandledExtensions.Any(ext => Path.GetExtension(p)?.Equals(ext, StringComparison.InvariantCultureIgnoreCase) ?? false));