Skip to content

fix: make implicit append else branch explicit with console.warn#176

Closed
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-166
Closed

fix: make implicit append else branch explicit with console.warn#176
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-166

Conversation

@JuliaKalder
Copy link
Copy Markdown
Owner

Summary

Changed the implicit else at template-insert.js:325-328 to an explicit else if (mode === "append") branch with a console.warn for unknown insertMode values. This makes the code self-documenting and prevents silent fallback behavior for any future new insertMode values.

Changes

  • modules/template-insert.js: Made the append-mode else branch explicit with console.warn fallback for unknown modes

Testing

  • Verified JavaScript syntax with node --check
  • Code follows existing patterns in the same function

Fixes #166

@JuliaKalder JuliaKalder deleted the fix/issue-166 branch May 13, 2026 11:26
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.

[LOW] template-insert.js:325-328: implicit else branch silently handles 'append' mode with no comment or label

1 participant