Skip to content

Commit

Permalink
fix: issues found by code scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jul 9, 2024
1 parent 7d65f38 commit deee0a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/action-scripts/generateTypedDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const checkPaths = ["docs/", "packages/*/*.api.md"];
* @param {{github: Github, context: Context}} param
*/
async function main(param) {
const { github, context } = param;
const { github } = param;

// check if our local working copy has any changes in the docs directory
const isChanged = !!(await exec.exec(
Expand Down
5 changes: 0 additions & 5 deletions .github/bot-scripts/ensureLogfileInDiscussion.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,6 @@ Please consider uploading a logfile that captures your problem. As a reminder, h
}
}

const options = {
owner: context.repo.owner,
repo: context.repo.repo,
};

// TODO: Consider if we want to delete outdated comments. That may delete replies as well though.
if (hasZjsLog || !message) return;

Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/utils/titleAndSentenceCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function sentenceCaseWord(word: string, isFirstWord: boolean): string {
const exception = titleCaseExceptions.find(
(ex) => ex.toLowerCase() === lowercase,
);
if (exception) exception;
if (exception) return exception;
}
if (
titleCaseIgnored.some((re) => re.test(word))
Expand Down

0 comments on commit deee0a0

Please sign in to comment.