mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix: 🚨 Fix Deepsource warnings
This commit is contained in:
parent
2fffbcbede
commit
870b6dbe85
13 changed files with 58 additions and 59 deletions
|
|
@ -87,8 +87,8 @@ export class ResponseError<
|
|||
export class BaseClient {
|
||||
public constructor(
|
||||
protected baseUrl: URL,
|
||||
private accessToken?: string,
|
||||
private options: {
|
||||
private readonly accessToken?: string,
|
||||
private readonly options: {
|
||||
globalCatch?: (error: ResponseError) => void;
|
||||
throwOnError?: boolean;
|
||||
} = {},
|
||||
|
|
@ -103,6 +103,7 @@ export class BaseClient {
|
|||
}
|
||||
|
||||
/** Overridable by testing */
|
||||
// biome-ignore lint/nursery/useReadonlyClassProperties: Overridable by testing
|
||||
private fetch = (...args: Parameters<typeof fetch>) => fetch(...args);
|
||||
|
||||
private async request<ReturnType>(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue