Skip to content

fix: remove throwaway "<origin>" map entry in Groups()#100

Merged
leodido merged 1 commit into
mainfrom
ld/remove-origin-map-entry
Apr 14, 2026
Merged

fix: remove throwaway "<origin>" map entry in Groups()#100
leodido merged 1 commit into
mainfrom
ld/remove-origin-map-entry

Conversation

@leodido
Copy link
Copy Markdown
Owner

@leodido leodido commented Apr 14, 2026

Description

The "<origin>" map entry in Groups() was created and immediately deleted — a no-op. Safe to remove because LocalNonPersistentFlags() (called on the next line) already calls LocalFlags() internally, which triggers the same mergePersistentFlags() side effect.

How to test

go test ./internal/usage/ -v
The entry was created and immediately deleted. LocalNonPersistentFlags()
already calls LocalFlags() internally, so the mergePersistentFlags()
side effect is preserved without it.

Co-authored-by: Ona <no-reply@ona.com>
@leodido leodido self-assigned this Apr 14, 2026
@leodido leodido marked this pull request as ready for review April 14, 2026 17:51
@leodido leodido changed the title fix: remove throwaway \"<origin>\" map entry in Groups() fix: remove throwaway "<origin>" map entry in Groups() Apr 14, 2026
@leodido leodido merged commit 5775b8a into main Apr 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant