Skip to content

fix: forward tenth argument in runEffectFn10#2

Merged
Unisay merged 2 commits into
masterfrom
fix/effect-runEffectFn10
Jun 14, 2026
Merged

fix: forward tenth argument in runEffectFn10#2
Unisay merged 2 commits into
masterfrom
fix/effect-runEffectFn10

Conversation

@Unisay

@Unisay Unisay commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

Closes #1

Forward the tenth argument in runEffectFn10. It bound ten curried parameters a through j but only forwarded nine to the underlying function, calling fn(a, b, c, d, e, f, g, h, i) and silently dropping j. luacheck flagged this as unused argument j at src/Effect/Uncurried.lua:197.

The fix forwards j: return fn(a, b, c, d, e, f, g, h, i, j). One-token change confined to src/.

Audited the whole mkEffectFnN / runEffectFnN family: runEffectFn10 was the only offender. After the fix, luacheck --quiet --std min src/Effect/Uncurried.lua is clean and nix develop -c ./scripts/build succeeds.

runEffectFn10 bound ten curried parameters a..j but only forwarded
nine to the underlying function, silently dropping j (luacheck:
unused argument j). Forward j so all ten declared arguments reach fn.

Closes #1
@Unisay Unisay self-assigned this Jun 14, 2026
@Unisay Unisay merged commit 6b96525 into master Jun 14, 2026
@Unisay Unisay deleted the fix/effect-runEffectFn10 branch June 14, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

runEffectFn10 drops its tenth argument (j)

1 participant