Skip to content

Commit bc0b381

Browse files
leshniakclaude
andcommitted
Move ts-expect-error to correct line inside Promise.resolve callback
The directive was on the wrong line after restructuring — TS saw it as unused since the actual type error is inside the .then() callback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2430f84 commit bc0b381

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/OnyxUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,8 +851,8 @@ function retryOperation<TMethod extends RetriableOnyxOperation>(error: Error, on
851851
);
852852
}
853853

854-
// @ts-expect-error No overload matches this call.
855854
return wait(delay).then(() =>
855+
// @ts-expect-error No overload matches this call.
856856
Promise.resolve(onyxMethod(defaultParams, nextRetryAttempt)).then(() => {
857857
if (!isConnectionError) {
858858
return;

0 commit comments

Comments
 (0)