Skip to content

Commit

Permalink
Replace usage of spread syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bdach committed Dec 31, 2024
1 parent a880ed9 commit 684247d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions osu.Server.BeatmapSubmission/Services/S3BeatmapStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ public async Task StoreBeatmapSetAsync(uint beatmapSetId, byte[] beatmapPackage,
beatmapFiles.Add((beatmapId, contents));
}

await Task.WhenAll([
uploadBeatmapPackage(beatmapSetId, beatmapPackage, stream),
..uploadAllVersionedFiles(beatmapSetId, allFiles),
..uploadAllBeatmapFiles(beatmapSetId, beatmapFiles)
]);
var tasks = new List<Task> { uploadBeatmapPackage(beatmapSetId, beatmapPackage, stream) };
tasks.AddRange(uploadAllVersionedFiles(beatmapSetId, allFiles));
tasks.AddRange(uploadAllBeatmapFiles(beatmapSetId, beatmapFiles));
await Task.WhenAll(tasks);

logger.LogInformation("All file uploads for beatmapset {beatmapSetId} concluded successfully.", beatmapSetId);
}

Expand Down

0 comments on commit 684247d

Please sign in to comment.