Skip to content

Commit

Permalink
Minor changes for lint/type-checking
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Jun 14, 2023
1 parent 5320ece commit 91920ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion build-system/release-tagger/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
*/

const dedent = require('dedent');
const {GraphQlQueryResponseData, graphql} = require('@octokit/graphql'); // eslint-disable-line @typescript-eslint/no-unused-vars
const {graphql} = require('@octokit/graphql');
const {Octokit} = require('@octokit/rest');

/** @typedef {import('@octokit/graphql').GraphQlQueryResponseData} GraphQlQueryResponseData */

/**
* GitHub API util functions
*/
Expand Down
6 changes: 5 additions & 1 deletion build-system/tasks/build-story-localization.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ function getLanguageCodeFallbacks(languageCode) {
if (!languageCode) {
return [FALLBACK_LANGUAGE_CODE];
}
const matches = languageCode.match(LANGUAGE_CODE_CHUNK_REGEX) || [];
const matches = languageCode.match(LANGUAGE_CODE_CHUNK_REGEX);
if (!matches) {
return [FALLBACK_LANGUAGE_CODE];
}

return matches.reduce(
(fallbackLanguageCodeList, _, index) => {
const fallbackLanguageCode = matches
Expand Down
2 changes: 1 addition & 1 deletion build-system/tasks/e2e/amp-driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const EnvironmentBehaviorMap = {

/**
* @param {string} url
* @param {{isEmail: boolean}=} opts
* @param {{isEmail: boolean}} opts
* @return {string}
*/
function getViewerUrl(url, {isEmail} = {isEmail: false}) {
Expand Down

0 comments on commit 91920ab

Please sign in to comment.