Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 68d0df2

Browse files
ReubenBondtjain-ms
authored andcommitted
WebSPA: minor style fixes
1 parent 77ea8ef commit 68d0df2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Web/WebSPA/Program.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
{
6363
string path = context.Request.Path.Value;
6464

65-
if (
66-
string.Equals(path, "/", StringComparison.OrdinalIgnoreCase) ||
65+
if (string.Equals(path, "/", StringComparison.OrdinalIgnoreCase) ||
6766
string.Equals(path, "/index.html", StringComparison.OrdinalIgnoreCase))
6867
{
6968
// The request token has to be sent as a JavaScript-readable cookie,
@@ -110,7 +109,7 @@
110109
ResponseWriter = UIResponseWriter.WriteHealthCheckUIResponse
111110
});
112111

113-
// Handles all still unnatended (by any other middleware) requests by returning the default page of the SPA (wwwroot/index.html).
112+
// Handles all still unattended (by any other middleware) requests by returning the default page of the SPA (wwwroot/index.html).
114113
app.UseSpa(spa =>
115114
{
116115
// To learn more about options for serving an Angular SPA from ASP.NET Core,
@@ -121,7 +120,6 @@
121120

122121
if (app.Environment.IsDevelopment())
123122
{
124-
125123
// use the SpaServices extension method for angular, that will make the application to run "ng serve" for us, when in development.
126124
spa.UseAngularCliServer(npmScript: "start");
127125
}

0 commit comments

Comments
 (0)