From 811014453fcf0f79f28ed4e77f5f3f373f00dccf Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Tue, 10 Dec 2024 17:47:33 -0600 Subject: [PATCH] chore: redo the knip changes --- __tests__/helpers/get-api-mock.ts | 6 ------ src/lib/apiError.ts | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/__tests__/helpers/get-api-mock.ts b/__tests__/helpers/get-api-mock.ts index 2f1f4d7b0..687ddabe5 100644 --- a/__tests__/helpers/get-api-mock.ts +++ b/__tests__/helpers/get-api-mock.ts @@ -18,12 +18,6 @@ export function getAPIv1Mock(reqHeaders = {}) { }); } -export function getAPIv1MockWithVersionHeader(v: string) { - return getAPIv1Mock({ - 'x-readme-version': v, - }); -} - /** * Nock wrapper for ReadMe API v2 that adds required * `user-agent` request header so it gets properly picked up by nock. diff --git a/src/lib/apiError.ts b/src/lib/apiError.ts index b6c9ca50c..6c2f75b90 100644 --- a/src/lib/apiError.ts +++ b/src/lib/apiError.ts @@ -5,7 +5,7 @@ import chalk from 'chalk'; -export interface APIv1ErrorResponse { +interface APIv1ErrorResponse { docs?: string; error: string; help?: string;