Skip to content

fix: remove dead code in app.psgi#89

Open
Koan-Bot wants to merge 1 commit intometacpan:masterfrom
Koan-Bot:koan.atoomic/remove-dead-code-app-psgi
Open

fix: remove dead code in app.psgi#89
Koan-Bot wants to merge 1 commit intometacpan:masterfrom
Koan-Bot:koan.atoomic/remove-dead-code-app-psgi

Conversation

@Koan-Bot
Copy link
Contributor

@Koan-Bot Koan-Bot commented Mar 12, 2026

What

Remove the orphaned grepcpan->to_app call and commented-out scaffolding from app.psgi.

Why

Line 12 called grepcpan->to_app outside the builder block — its return value was discarded, making it dead code. The PSGI app is actually returned by the builder {} block below it. The surrounding comment ("use this block if you don't need middleware") and the POD comment blocks at the end were leftover Dancer2 skeleton that no longer matched the actual setup.

How

Straightforward deletion. The file now contains only what's needed: imports, and the single builder block that serves the app with Deflater middleware.

Testing

  • Perl syntax check passes (module deps unavailable outside Docker, as expected)
  • Docker test suite unavailable in this environment; the change is pure deletion with no behavioral impact

🤖 Generated with Claude Code


Quality Report

Changes: 1 file changed, 38 deletions(-)

Code scan: clean

Tests: failed (FAILED)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

Remove the standalone `grepcpan->to_app` call on line 12 whose return
value was discarded (the builder block below is the actual PSGI app).
Also remove the stale "use this block if you don't need middleware"
comment and the commented-out POD blocks at the end of the file,
which were leftover scaffolding from the Dancer2 skeleton.
@Koan-Bot
Copy link
Contributor Author

Quality Gate Warning

Tests failed: FAILED

Auto-merge was skipped due to quality gate issues.

@atoomic atoomic marked this pull request as ready for review March 15, 2026 14:13
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.

1 participant