Skip to content

Commit 06c47d5

Browse files
Rick-Andersoncommonsensesoftware
authored andcommitted
use IsDevelopment
1 parent 84b1b80 commit 06c47d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/AspNetCore/OData/SomeODataOpenApiExample/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
// Configure the HTTP request pipeline.
6565

6666
app.UseSwagger();
67-
if ( builder.Environment.IsDevelopment() )
67+
if ( app.Environment.IsDevelopment() )
6868
{
6969
app.UseSwaggerUI(
7070
options =>

examples/AspNetCore/WebApi/MinimalOpenApiExample/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
.Produces( 400 );
265265

266266
app.UseSwagger();
267-
if ( builder.Environment.IsDevelopment() )
267+
if ( app.Environment.IsDevelopment() )
268268
{
269269
app.UseSwaggerUI(
270270
options =>

0 commit comments

Comments
 (0)