clean
This commit is contained in:
parent
ba79856131
commit
e0ae00c523
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ public partial class FileEndpoint : RouterBase
|
|||
{
|
||||
mime = GuessMIMEType(fileInfo.Extension);
|
||||
}
|
||||
return !File.Exists(assetPath) ? null : (HttpResponse)new HttpContent(mime, await File.ReadAllBytesAsync(assetPath));
|
||||
|
||||
if (!File.Exists(assetPath))
|
||||
return null;
|
||||
|
||||
return new HttpContent(mime, await File.ReadAllBytesAsync(assetPath));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Reference in a new issue