From 0e914e55faa86f01bf38f9aea012f78881b79d75 Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Tue, 28 Feb 2017 21:00:23 +0100 Subject: [PATCH] Remove double null check (#5862) Address #5834 --- .../Formatters/MediaTypeCollection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaTypeCollection.cs b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaTypeCollection.cs index 065bbde7cd..5fa822c59a 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaTypeCollection.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Formatters/MediaTypeCollection.cs @@ -30,7 +30,7 @@ public void Add(MediaTypeHeaderValue item) throw new ArgumentNullException(nameof(item)); } - Add(item?.ToString()); + Add(item.ToString()); } ///