Skip to content

Commit d069a45

Browse files
Refactor variable declarations in Program.cs
Updated the declarations for `builder` and `app` to use explicit types (`WebApplicationBuilder` and `WebApplication`, respectively) instead of `var`. This change improves code clarity and readability.
1 parent 78095a5 commit d069a45

File tree

1 file changed

+2
-2
lines changed
  • samples/datasync-server-cosmosdb-singlecontainer/src

1 file changed

+2
-2
lines changed

samples/datasync-server-cosmosdb-singlecontainer/src/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using System.Text.Json;
1313
using System.Text.Json.Serialization;
1414

15-
var builder = WebApplication.CreateBuilder(args);
15+
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
1616

1717
string connectionString = builder.Configuration.GetConnectionString("DefaultConnection")
1818
?? throw new ApplicationException("DefaultConnection is not set");
@@ -51,7 +51,7 @@
5151
.AddEndpointsApiExplorer()
5252
.AddSwaggerGen(options => options.AddDatasyncControllers());
5353

54-
var app = builder.Build();
54+
WebApplication app = builder.Build();
5555

5656
// Configure the HTTP request pipeline.
5757
if (app.Environment.IsDevelopment())

0 commit comments

Comments
 (0)