diff --git a/src/Microsoft.AspNetCore.Diagnostics/StatusCodePage/StatusCodePagesOptions.cs b/src/Microsoft.AspNetCore.Diagnostics/StatusCodePage/StatusCodePagesOptions.cs index 0e3e53e8a3..c5640c2250 100644 --- a/src/Microsoft.AspNetCore.Diagnostics/StatusCodePage/StatusCodePagesOptions.cs +++ b/src/Microsoft.AspNetCore.Diagnostics/StatusCodePage/StatusCodePagesOptions.cs @@ -32,7 +32,7 @@ namespace Microsoft.AspNetCore.Builder private string BuildResponseBody(int httpStatusCode) { // Note the 500 spaces are to work around an IE 'feature' - string internetExplorerWorkaround = new string(' ', 500); + var internetExplorerWorkaround = new string(' ', 500); var reasonPhrase = ReasonPhrases.GetReasonPhrase(httpStatusCode); diff --git a/test/Microsoft.AspNetCore.Diagnostics.FunctionalTests/StatusCodeSampleTest.cs b/test/Microsoft.AspNetCore.Diagnostics.FunctionalTests/StatusCodeSampleTest.cs index 058f33dade..a990af53bc 100644 --- a/test/Microsoft.AspNetCore.Diagnostics.FunctionalTests/StatusCodeSampleTest.cs +++ b/test/Microsoft.AspNetCore.Diagnostics.FunctionalTests/StatusCodeSampleTest.cs @@ -1,10 +1,10 @@ // Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -using Microsoft.AspNetCore.WebUtilities; using System.Net; using System.Net.Http; using System.Threading.Tasks; +using Microsoft.AspNetCore.WebUtilities; using Xunit; namespace Microsoft.AspNetCore.Diagnostics.FunctionalTests