Skip to content

Commit 5edfc03

Browse files
committed
Inline variable
1 parent 632ebb1 commit 5edfc03

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/TfvcMigrator/Program.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ public static async Task MigrateAsync(
8787

8888
Console.WriteLine("Connecting...");
8989

90-
var vssCredentials = pat is not null
91-
? new VssBasicCredential(userName: null, password: pat)
92-
: new VssCredentials();
90+
using var connection = new VssConnection(
91+
projectCollectionUrl,
92+
pat is not null
93+
? new VssBasicCredential(userName: null, password: pat)
94+
: new VssCredentials());
9395

94-
using var connection = new VssConnection(projectCollectionUrl, vssCredentials);
9596
using var client = await connection.GetClientAsync<TfvcHttpClient>();
9697

9798
Console.WriteLine("Downloading changeset and label metadata...");

0 commit comments

Comments
 (0)