Skip to content

Commit 80ec147

Browse files
committed
fix lints
1 parent 745fc0f commit 80ec147

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/client.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ export class Kernel {
188188
...opts
189189
}: ClientOptions = {}) {
190190
// Check for Bun runtime in a way that avoids type errors if Bun is not defined
191-
if (typeof globalThis !== 'undefined' && typeof (globalThis as any).Bun !== 'undefined' && (globalThis as any).Bun.version) {
192-
throw new Errors.KernelError(
193-
"The Bun runtime is not supported. Please use a different runtime.",
194-
);
191+
if (
192+
typeof globalThis !== 'undefined' &&
193+
typeof (globalThis as any).Bun !== 'undefined' &&
194+
(globalThis as any).Bun.version
195+
) {
196+
throw new Errors.KernelError('The Bun runtime is not supported. Please use a different runtime.');
195197
}
196198

197199
if (apiKey === undefined) {

0 commit comments

Comments
 (0)