From 8774121ae2e7946d4526039c726ef6ea1e0766cb Mon Sep 17 00:00:00 2001 From: bbsadmin Date: Thu, 7 Nov 2024 15:34:17 -0600 Subject: [PATCH] fix bug --- .../Commands/MigrateRepo/MigrateRepoCommandHandler.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/gei/Commands/MigrateRepo/MigrateRepoCommandHandler.cs b/src/gei/Commands/MigrateRepo/MigrateRepoCommandHandler.cs index 51084c8a..a0cc5691 100644 --- a/src/gei/Commands/MigrateRepo/MigrateRepoCommandHandler.cs +++ b/src/gei/Commands/MigrateRepo/MigrateRepoCommandHandler.cs @@ -64,16 +64,7 @@ public async Task Handle(MigrateRepoCommandArgs args) _log.LogInformation("Migrating Repo..."); - var blobCredentialsRequired = false; - - if (args.UseGithubStorage) - { - blobCredentialsRequired = true; - } - else - { - blobCredentialsRequired = await _ghesVersionChecker.AreBlobCredentialsRequired(args.GhesApiUrl); - }; + var blobCredentialsRequired = args.UseGithubStorage || (await _ghesVersionChecker.AreBlobCredentialsRequired(args.GhesApiUrl)); if (args.GhesApiUrl.HasValue()) {