Address remaining reviews suggestions.

This commit is contained in:
Lucas A
2021-01-26 20:35:42 +01:00
parent 2a2b6f347e
commit 383c40b992
3 changed files with 7 additions and 6 deletions

View File

@ -35,12 +35,13 @@ namespace osu.Game.IO
{
var songsDirectoryPath = Path.Combine(BasePath, stable_default_songs_path);
var configFile = GetFiles(".", "osu!.*.cfg").FirstOrDefault();
var configFile = GetFiles(".", "osu!.*.cfg").SingleOrDefault();
if (configFile == null)
return songsDirectoryPath;
using (var textReader = new StreamReader(GetStream(configFile)))
using (var stream = GetStream(configFile))
using (var textReader = new StreamReader(stream))
{
string line;