Skip to content

Commit

Permalink
chore: minor source refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
pviti committed Nov 16, 2023
1 parent fdf6ec6 commit d949323
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import type { InterceptorManager } from './interceptor'
import config from './config'
import type { Agent as HttpAgent } from 'http'
import type { Agent as HttpsAgent } from 'https'
import { packageInfo } from './util'

import Debug from './debug'
import { packageInfo } from './util'
const debug = Debug('client')


Expand Down Expand Up @@ -169,7 +169,7 @@ class ApiClient {
const url = path

// Runtime request parameters
const baseUrl = options?.organization ? baseURL(options.organization, options.domain) : undefined
const baseUrl = options?.organization? baseURL(options.organization, options.domain) : undefined
const accessToken = options?.accessToken || this.#accessToken

const headers = this.customHeaders(options?.headers)
Expand Down
1 change: 0 additions & 1 deletion src/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ class ResourceAdapter {
get interceptors(): InterceptorManager { return this.#client.interceptors }


// eslint-disable-next-line @typescript-eslint/no-unused-vars
private localConfig(config: ResourceAdapterConfig): void {
// if (typeof config.xyz !== 'undefined') this.#config.xyz = config.xyz
}
Expand Down

0 comments on commit d949323

Please sign in to comment.