Skip to content

Commit 16e08d7

Browse files
Apply suggestions from code review
Co-authored-by: David Pine <[email protected]>
1 parent b28a809 commit 16e08d7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

actions/sequester/ImportIssues/Program.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,8 @@ private static async Task<QuestGitHubService> CreateService(ImportOptions option
105105
{
106106
Console.WriteLine("Warning: Imported work items won't be assigned based on GitHub assignee.");
107107
}
108-
bool useBearerToken = (options.ApiKeys.QuestAccessToken is not null);
109-
string? token = useBearerToken ?
110-
options.ApiKeys.QuestAccessToken :
111-
options.ApiKeys.QuestKey;
108+
string? token = options.ApiKeys.QuestAccessToken
109+
?? options.ApiKeys.QuestKey;
112110

113111
if (string.IsNullOrWhiteSpace(token))
114112
{

0 commit comments

Comments
 (0)