Skip to content

Commit 77c1785

Browse files
committed
Fix lint
1 parent b8506f4 commit 77c1785

File tree

4 files changed

+8
-18
lines changed

4 files changed

+8
-18
lines changed

apps/sim/lib/copilot/tools/client/other/sleep.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ export class SleepClientTool extends BaseClientTool {
112112
if (seconds > MAX_SLEEP_SECONDS) seconds = MAX_SLEEP_SECONDS
113113

114114
logger.debug('Starting sleep', { seconds })
115-
115+
116116
// Track start time for elapsed calculation
117117
sleepStartTimes[this.toolCallId] = Date.now()
118-
118+
119119
this.setState(ClientToolCallState.executing)
120120

121121
try {

apps/sim/lib/copilot/tools/server/workflow/edit-workflow.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ function logSkippedItem(skippedItems: SkippedItem[], item: SkippedItem): void {
7878
skippedItems.push(item)
7979
}
8080

81-
8281
/**
8382
* Result of input validation
8483
*/

apps/sim/lib/workflows/diff/diff-engine.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -735,15 +735,11 @@ export class WorkflowDiffEngine {
735735
'@/lib/workflows/autolayout/constants'
736736
)
737737

738-
const layoutedBlocks = applyTargetedLayout(
739-
finalBlocks,
740-
fullyCleanedState.edges,
741-
{
742-
changedBlockIds: impactedBlockArray,
743-
horizontalSpacing: DEFAULT_HORIZONTAL_SPACING,
744-
verticalSpacing: DEFAULT_VERTICAL_SPACING,
745-
}
746-
)
738+
const layoutedBlocks = applyTargetedLayout(finalBlocks, fullyCleanedState.edges, {
739+
changedBlockIds: impactedBlockArray,
740+
horizontalSpacing: DEFAULT_HORIZONTAL_SPACING,
741+
verticalSpacing: DEFAULT_VERTICAL_SPACING,
742+
})
747743

748744
Object.entries(layoutedBlocks).forEach(([id, layoutBlock]) => {
749745
if (finalBlocks[id]) {
@@ -1134,7 +1130,6 @@ export class WorkflowDiffEngine {
11341130
}
11351131
}
11361132

1137-
11381133
/**
11391134
* Removes diff metadata from a workflow state so it can be persisted or re-used safely.
11401135
*/

apps/sim/lib/workflows/sanitization/key-validation.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
*/
55
export function isValidKey(key: unknown): key is string {
66
return (
7-
!!key &&
8-
typeof key === 'string' &&
9-
key !== 'undefined' &&
10-
key !== 'null' &&
11-
key.trim() !== ''
7+
!!key && typeof key === 'string' && key !== 'undefined' && key !== 'null' && key.trim() !== ''
128
)
139
}

0 commit comments

Comments
 (0)