From cf5ed5db1a72bdd7cd073362fc101677bc3033a1 Mon Sep 17 00:00:00 2001 From: Raghd Hamzeh Date: Tue, 14 Jan 2025 14:17:45 -0500 Subject: [PATCH] chore: minor cleanup --- credentials/credentials.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/credentials/credentials.ts b/credentials/credentials.ts index c7e16e6..d9980c5 100644 --- a/credentials/credentials.ts +++ b/credentials/credentials.ts @@ -14,11 +14,10 @@ import globalAxios, { AxiosInstance } from "axios"; import { assertParamExists, isWellFormedUriString } from "../validation"; -import { FgaApiAuthenticationError, FgaApiError, FgaError, FgaValidationError } from "../errors"; +import { FgaApiAuthenticationError, FgaApiError, FgaValidationError } from "../errors"; import { attemptHttpRequest } from "../common"; import { AuthCredentialsConfig, ClientCredentialsConfig, CredentialsMethod } from "./types"; import { TelemetryAttributes } from "../telemetry/attributes"; -import { MetricRecorder } from "../telemetry/metrics"; import { TelemetryCounters } from "../telemetry/counters"; import { TelemetryConfiguration } from "../telemetry/configuration"; @@ -28,7 +27,7 @@ export class Credentials { public static init(configuration: { credentials: AuthCredentialsConfig, telemetry: TelemetryConfiguration, baseOptions?: any }, axios: AxiosInstance = globalAxios): Credentials { return new Credentials(configuration.credentials, axios, configuration.telemetry, configuration.baseOptions); -} + } public constructor(private authConfig: AuthCredentialsConfig, private axios: AxiosInstance = globalAxios, private telemetryConfig: TelemetryConfiguration, private baseOptions?: any) { this.initConfig();