Skip to content

review: settle the asl forwarder advisories - #18

Merged
CMGS merged 1 commit into
masterfrom
review/forwarder-settle
Sep 11, 2026
Merged

CMGS merged 1 commit into
masterfrom
review/forwarder-settle

Conversation

@CMGS

@CMGS CMGS commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Why

asl now carries a forwarder advisory: an unexported one-statement func with exactly one call site. Four fired here; this settles them.

What

  • assignedSandboxName, needsCleanup, generateName inlined at their single call sites (net -18 lines); pkg/e2bcompat/http.go drops the names import that moves to server.go.
  • putJSON stays as the PUT member of the get/post/put family over sendJSON; recorded as kept in the hygiene ledger.

No behaviour change; no comment added.

Evidence

GOWORK=off make fmt-check rc=0; GOWORK=off make lint rc=0 with two 0 issues lines (linux + darwin); asl ./... on both GOOS reports only the kept advisory; GOWORK=off go test -race -count=1 ./... rc=0, no FAIL lines.

asl's forwarder advisory flagged assignedSandboxName, needsCleanup and
generateName: each had one call site and one statement, and the
annotation key, the nil test and the name generator read as well inline.
putJSON stays as the PUT member of the get/post/put family over sendJSON
and is recorded as kept in the hygiene ledger.
@CMGS
CMGS merged commit da684b1 into master Sep 11, 2026
2 checks passed
@CMGS
CMGS deleted the review/forwarder-settle branch September 11, 2026 23:22
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