style(dev-infra): correct tslint failures in dev-infra directory (#37233)

Fixes tslint failures in dev-infra directory as the directory is now
part of the tslint enforced files.

PR Close #37233
This commit is contained in:
Joey Perrott
2020-05-20 16:04:46 -07:00
committed by atscott
parent 753fed285c
commit 4e7a4543b8
11 changed files with 35 additions and 15 deletions

View File

@ -28,7 +28,7 @@ const graphql = unauthenticatedGraphql.defaults({
/** Get a PR from github */
export async function getPr<PrSchema>(
prSchema: PrSchema, number: number, {owner, name}: GithubConfig) {
prSchema: PrSchema, prNumber: number, {owner, name}: GithubConfig) {
const PR_QUERY = params(
{
$number: 'Int!', // The PR number
@ -41,7 +41,8 @@ export async function getPr<PrSchema>(
})
});
const result = await graphql(graphqlQuery(PR_QUERY), {number, owner, name}) as typeof PR_QUERY;
const result =
await graphql(graphqlQuery(PR_QUERY), {number: prNumber, owner, name}) as typeof PR_QUERY;
return result.repository.pullRequest;
}