Skip to content

Commit

Permalink
Changes from lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-sdk-js committed Jul 1, 2024
1 parent 8e14390 commit 67c75d1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/core/context.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/* eslint-disable import/no-internal-modules */
import { createLogger } from '@sap-cloud-sdk/util';
import { Destination, Service, getServiceBinding, transformServiceBindingToDestination } from '@sap-cloud-sdk/connectivity';
import {
Destination,
Service,
getServiceBinding,
transformServiceBindingToDestination
} from '@sap-cloud-sdk/connectivity';

const logger = createLogger({
package: 'gen-ai-hub',
Expand All @@ -24,9 +28,12 @@ export async function getAiCoreDestination(): Promise<Destination> {
}
}
// Uses the @internal SDK functionality to transform the service binding to a destination.
const aiCoreDestination = await transformServiceBindingToDestination(aiCoreServiceBinding, {
useCache: true
});
const aiCoreDestination = await transformServiceBindingToDestination(
aiCoreServiceBinding,
{
useCache: true
}
);
return aiCoreDestination;
}

Expand Down

0 comments on commit 67c75d1

Please sign in to comment.