refactor: add JSDoc to aws.getState() clarifying test-only usage (#2651)

this function has no callers in production code but is intentionally
used in unit tests (custom-flag.test.ts) for state introspection.
adding documentation prevents it from being incorrectly identified
as dead code in future code quality scans.

code quality scan results:
- dead code: none found
- stale references: none found
- python usage: none found
- duplicate utilities: getCloudInitUserdata has per-cloud variants
  with intentional differences (not mergeable)
- stale comments: none found

-- qa/code-quality

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
This commit is contained in:
A 2026-03-15 05:51:24 -07:00 committed by GitHub
parent 6a439021e5
commit d6e2eb3aad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -194,6 +194,7 @@ const _state: AwsState = {
keyPairName: "spawn-key",
};
/** Introspect internal state (used by tests). */
export function getState() {
return {
awsRegion: _state.region,