Skip to content

fix(formatter): skip user lookup when user prefix is disabled#81

Merged
sgaunet merged 1 commit intomainfrom
fix/formatter-lazy-user-lookup
Mar 23, 2026
Merged

fix(formatter): skip user lookup when user prefix is disabled#81
sgaunet merged 1 commit intomainfrom
fix/formatter-lazy-user-lookup

Conversation

@sgaunet
Copy link
Copy Markdown
Owner

@sgaunet sgaunet commented Mar 23, 2026

Guard user.Current() behind cfg.Prefix.User.Enabled check to avoid
unnecessary syscalls and failures in environments without user info.

Closes #80

Guard user.Current() behind cfg.Prefix.User.Enabled check to avoid
unnecessary syscalls and failures in environments without user info.

Closes #80
@sgaunet sgaunet self-assigned this Mar 23, 2026
@sgaunet sgaunet added the bug Something isn't working label Mar 23, 2026
@sgaunet sgaunet merged commit 5c58cad into main Mar 23, 2026
2 checks passed
@sgaunet sgaunet deleted the fix/formatter-lazy-user-lookup branch March 23, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid unnecessary user.Current() call when user prefix is disabled

1 participant