Fix code formatting regression

This commit is contained in:
Dean Herbert 2018-03-12 22:01:18 +09:00
parent eb643b690a
commit 3354849cc9
1 changed files with 8 additions and 3 deletions

View File

@ -58,9 +58,14 @@ private class LegacySkinResourceStore : IResourceStore<byte[]>
private readonly SkinInfo skin;
private readonly IResourceStore<byte[]> underlyingStore;
private string getPathForFile(string filename) =>
skin.Files.FirstOrDefault(f => string.Equals(Path.GetFileNameWithoutExtension(f.Filename), filename.Split('/').Last(), StringComparison.InvariantCultureIgnoreCase))?.FileInfo
.StoragePath;
private string getPathForFile(string filename)
{
string lastPiece = filename.Split('/').Last();
var file = skin.Files.FirstOrDefault(f =>
string.Equals(Path.GetFileNameWithoutExtension(f.Filename), lastPiece, StringComparison.InvariantCultureIgnoreCase));
return file?.FileInfo.StoragePath;
}
public LegacySkinResourceStore(SkinInfo skin, IResourceStore<byte[]> underlyingStore)
{