Skip to content

Commit e2a7be0

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
fix lint
1 parent d3fd0be commit e2a7be0

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

apps/sim/app/api/workflows/[id]/execute/route.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ async function executeWorkflow(workflow: any, requestId: string, input?: any) {
201201

202202
// Check for variable references like <start.input>
203203
if (responseFormatValue.startsWith('<') && responseFormatValue.includes('>')) {
204-
logger.debug(`[${requestId}] Response format contains variable reference for block ${blockId}`)
204+
logger.debug(
205+
`[${requestId}] Response format contains variable reference for block ${blockId}`
206+
)
205207
// Keep variable references as-is - they will be resolved during execution
206208
acc[blockId] = blockState
207209
} else if (responseFormatValue === '') {
@@ -221,7 +223,10 @@ async function executeWorkflow(workflow: any, requestId: string, input?: any) {
221223
responseFormat: parsedResponseFormat,
222224
}
223225
} catch (error) {
224-
logger.warn(`[${requestId}] Failed to parse responseFormat for block ${blockId}, using undefined`, error)
226+
logger.warn(
227+
`[${requestId}] Failed to parse responseFormat for block ${blockId}, using undefined`,
228+
error
229+
)
225230
// Set to undefined instead of keeping malformed JSON - this allows execution to continue
226231
acc[blockId] = {
227232
...blockState,

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-block-connections.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export interface ConnectedBlock {
3030
}
3131

3232
function parseResponseFormatSafely(responseFormatValue: any, blockId: string): any {
33-
3433
if (!responseFormatValue) {
3534
return undefined
3635
}

apps/sim/executor/handlers/agent/agent-handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class AgentBlockHandler implements BlockHandler {
7878
// Check for variable references like <start.input>
7979
if (trimmedValue.startsWith('<') && trimmedValue.includes('>')) {
8080
logger.info('Response format contains variable reference:', {
81-
value: trimmedValue
81+
value: trimmedValue,
8282
})
8383
// Variable references should have been resolved by the resolver before reaching here
8484
// If we still have a variable reference, it means it couldn't be resolved
@@ -101,7 +101,7 @@ export class AgentBlockHandler implements BlockHandler {
101101
} catch (error: any) {
102102
logger.warn('Failed to parse response format as JSON, using default behavior:', {
103103
error: error.message,
104-
value: trimmedValue
104+
value: trimmedValue,
105105
})
106106
// Return undefined instead of throwing - this allows execution to continue
107107
// without structured response format
@@ -112,7 +112,7 @@ export class AgentBlockHandler implements BlockHandler {
112112
// For any other type, return undefined
113113
logger.warn('Unexpected response format type, using default behavior:', {
114114
type: typeof responseFormat,
115-
value: responseFormat
115+
value: responseFormat,
116116
})
117117
return undefined
118118
}

apps/sim/serializer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export class Serializer {
168168
// This allows the workflow to continue without structured response format
169169
logger.warn('Failed to parse response format as JSON in serializer, using undefined:', {
170170
value: trimmedValue,
171-
error: error instanceof Error ? error.message : String(error)
171+
error: error instanceof Error ? error.message : String(error),
172172
})
173173
return undefined
174174
}

0 commit comments

Comments
 (0)