Skip to content

Commit

Permalink
chore: add missing async
Browse files Browse the repository at this point in the history
saw this via vscode... really wish `tsc` could flag this somehow 🤔
  • Loading branch information
kanadgupta committed Apr 24, 2024
1 parent 85814ad commit 10ba04c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/getCategories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import readmeAPIFetch, { cleanHeaders, handleRes } from './readmeAPIFetch.js';
* @returns An array of category objects
*/
export default async function getCategories(key: string, selectedVersion: string | undefined) {
function getNumberOfPages() {
async function getNumberOfPages() {
let totalCount = 0;
return readmeAPIFetch('/api/v1/categories?perPage=20&page=1', {
method: 'get',
Expand Down

0 comments on commit 10ba04c

Please sign in to comment.