Skip to content

test(desktop): pass context.TODO() to emitReady, not nil#4263

Merged
esengine merged 1 commit into
main-v2from
fix/4250-followup-nil-context
Jun 13, 2026
Merged

test(desktop): pass context.TODO() to emitReady, not nil#4263
esengine merged 1 commit into
main-v2from
fix/4250-followup-nil-context

Conversation

@esengine

Copy link
Copy Markdown
Owner

Follow-up to #4250. The new TestEmitReadyInvokesReadyHook passed nil as the context; emitReady returns early when a readyHook is set, so the test behaves identically, but the call trips staticcheck SA1012 ("do not pass a nil Context"). Pass context.TODO() instead.

No behavior change; desktop-module test only.

emitReady returns before touching ctx when a readyHook is set, so the
test behaves identically — this only silences staticcheck SA1012 (do not
pass a nil Context). Follow-up to #4250, which added the test.
@esengine esengine requested a review from SivanCola as a code owner June 13, 2026 06:21
@github-actions github-actions Bot added desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development labels Jun 13, 2026
@esengine esengine merged commit c31e4f3 into main-v2 Jun 13, 2026
14 checks passed
@esengine esengine deleted the fix/4250-followup-nil-context branch June 13, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

desktop Wails desktop app (desktop/**) v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant