Skip to content

Commit

Permalink
chore: fix spelling errors (#672)
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
  • Loading branch information
jsoref authored Feb 18, 2024
1 parent 8a8eac6 commit a770925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export function throttling(octokit: Octokit, octokitOptions: OctokitOptions) {
});

// The types for `before-after-hook` do not let us only pass through a Promise return value
// the types expect that the function can return either a Promise of the response, or diectly return the response.
// the types expect that the function can return either a Promise of the response, or directly return the response.
// This is due to the fact that `@octokit/request` uses aysnc functions
// Also, since we add the custom `retryCount` property to the request argument, the types are not compatible.
// @ts-expect-error
Expand Down
2 changes: 1 addition & 1 deletion test/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe("General", function () {
});
});

describe("Github API best practices", function () {
describe("GitHub API best practices", function () {
it("Should linearize requests", async function () {
const octokit = new TestOctokit({
throttle: { onSecondaryRateLimit: () => 1, onRateLimit: () => 1 },
Expand Down

0 comments on commit a770925

Please sign in to comment.