Skip to content

Commit 70a32df

Browse files
Apply suggestions from code review
Co-authored-by: David Pine <[email protected]>
1 parent 1f147a6 commit 70a32df

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

115113
if (string.IsNullOrWhiteSpace(token))
116114
{

0 commit comments

Comments
 (0)