Skip to content

Commit 480cb32

Browse files
committed
Remove stray leading semicolons
1 parent 8a34416 commit 480cb32

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

packages/agent-runtime/src/prompt-agent-stream.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ export const getAgentStreamFromTemplate = (params: {
9898
if (!aiSdkStreamParams.providerOptions[provider]) {
9999
aiSdkStreamParams.providerOptions[provider] = {}
100100
}
101-
;(
102-
aiSdkStreamParams.providerOptions[provider] as OpenRouterProviderOptions
103-
).reasoning = template.reasoningOptions
101+
const providerOptions = aiSdkStreamParams.providerOptions[
102+
provider
103+
] as OpenRouterProviderOptions
104+
providerOptions.reasoning = template.reasoningOptions
104105
}
105106

106107
// Pass agent's provider routing options to SDK

packages/billing/src/__tests__/org-billing.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,9 @@ describe('Organization Billing', () => {
256256
insert: () => ({
257257
values: () => {
258258
const error = new Error('Duplicate key')
259-
;(error as any).code = '23505'
260-
;(error as any).constraint = 'credit_ledger_pkey'
259+
const errWithProps = error as any
260+
errWithProps.code = '23505'
261+
errWithProps.constraint = 'credit_ledger_pkey'
261262
throw error
262263
},
263264
}),

scripts/update-stripe-subscriptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ async function processCustomer(entry: MigrationEntry) {
101101
console.log(`Processed customer ${entry.stripeCustomerId}`)
102102
}
103103

104-
;(async () => {
104+
(async () => {
105105
console.log(`Processing ${migrationData.length} migrated users...`)
106106
for (const entry of migrationData) {
107107
await processCustomer(entry)

sdk/test/esm-compatibility/test-types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import {
99
getCustomToolDefinition,
1010
} from '@codebuff/sdk'
1111
import * as FullSDK from '@codebuff/sdk'
12-
;(async () => {
12+
13+
(async () => {
1314
// Test 1: Type imports work correctly
1415
const testClient: CodebuffClient = {} as any
1516
const testTool: CustomToolDefinition = {} as any

sdk/test/ripgrep-bundling/test-ripgrep-types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Test TypeScript types for ripgrep bundling functionality
22
import { getBundledRgPath, ToolHelpers } from '@codebuff/sdk'
3-
;(async () => {
3+
4+
(async () => {
45
console.log('🧪 Testing ripgrep TypeScript types...')
56

67
// Test 1: getBundledRgPath function type

web/src/components/TerminalDemo.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,10 +1007,8 @@ const TerminalDemo = () => {
10071007
}
10081008

10091009
// Add characters one by one
1010-
;(inputEl as HTMLElement).innerText = commandToType.substring(
1011-
0,
1012-
i + 1,
1013-
)
1010+
const inputElement = inputEl as HTMLElement
1011+
inputElement.innerText = commandToType.substring(0, i + 1)
10141012
i++
10151013
}, 150)
10161014

web/src/components/ui/terminal/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ const Terminal = ({
165165
'react-terminal-wrapper',
166166
)) {
167167
const listener = () => {
168-
;(
169-
terminalEl?.querySelector('.terminal-hidden-input') as HTMLElement
170-
)?.focus()
168+
const hiddenInput = terminalEl?.querySelector(
169+
'.terminal-hidden-input',
170+
) as HTMLElement | null
171+
hiddenInput?.focus()
171172
terminalEl.scrollIntoView({ behavior: 'smooth', block: 'start' })
172173
}
173174
terminalEl?.addEventListener('click', listener)

0 commit comments

Comments
 (0)