Fix warnings

This commit is contained in:
Alex Amadori 2017-03-09 21:07:21 +01:00
parent f969c3b7b3
commit faecaa297a
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ namespace osu.Game.Beatmaps.IO
catch (InvalidCastException e)
{
Logger.Error(e, "A tricky ArchiveReader instance passed the test to be a BeatmapArhiveReader, but it's really not");
throw e;
throw;
}
}

View File

@ -16,7 +16,7 @@ namespace osu.Game.Beatmaps.IO
AddReader<OszArchiveReader>((storage, path) =>
{
using (var stream = storage.GetStream(path))
return (Path.GetExtension(path) == ".osz") && ZipFile.IsZipFile(stream, false);
return Path.GetExtension(path) == ".osz" && ZipFile.IsZipFile(stream, false);
});
OsuLegacyDecoder.Register();
}