Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/Mvc/Mvc.Core/src/FileContentResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public class FileContentResult : FileResult
public FileContentResult(byte[] fileContents, string contentType)
: this(fileContents, MediaTypeHeaderValue.Parse(contentType))
{
if (fileContents == null)
{
throw new ArgumentNullException(nameof(fileContents));
}
}

/// <summary>
Expand Down Expand Up @@ -80,4 +76,4 @@ public override Task ExecuteResultAsync(ActionContext context)
return executor.ExecuteAsync(context, this);
}
}
}
}
4 changes: 0 additions & 4 deletions src/Mvc/Mvc.Core/src/VirtualFileResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public class VirtualFileResult : FileResult
public VirtualFileResult(string fileName, string contentType)
: this(fileName, MediaTypeHeaderValue.Parse(contentType))
{
if (fileName == null)
{
throw new ArgumentNullException(nameof(fileName));
}
}

/// <summary>
Expand Down