Skip to content

Commit 71ed8df

Browse files
Apply suggestions from code review
Co-authored-by: David Pine <[email protected]>
1 parent bdac80c commit 71ed8df

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
@@ -104,10 +104,8 @@ private static async Task<QuestGitHubService> CreateService(ImportOptions option
104104
{
105105
Console.WriteLine("Warning: Imported work items won't be assigned based on GitHub assignee.");
106106
}
107-
bool useBearerToken = (options.ApiKeys.QuestAccessToken is not null);
108-
string? token = useBearerToken ?
109-
options.ApiKeys.QuestAccessToken :
110-
options.ApiKeys.QuestKey;
107+
string? token = options.ApiKeys.QuestAccessToken
108+
?? options.ApiKeys.QuestKey;
111109

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

0 commit comments

Comments
 (0)