Skip to content

refactor: remove unreachable empty InfoLogPath branch in setupLoggers - #30

Merged
maansaake merged 2 commits into
mainfrom
refactor/remove-dead-info-log-path-check
May 24, 2026
Merged

refactor: remove unreachable empty InfoLogPath branch in setupLoggers#30
maansaake merged 2 commits into
mainfrom
refactor/remove-dead-info-log-path-check

Conversation

@maansaake

Copy link
Copy Markdown
Owner

Summary

opts.InfoLogPath is always populated by defaultOpts() before setupLoggers() is ever called in Run(), so the logr.Discard() fallback branch for an empty path could never be reached.

Removes the dead if opts.InfoLogPath == ""{ ... } block and simplifies setupLoggers to unconditionally open the info log file.

opts.InfoLogPath is always set by defaultOpts() before setupLoggers()
is called, so the logr.Discard() fallback could never be reached.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread arbiter.go Fixed
Co-authored-by: maansaake <15028979+maansaake@users.noreply.github.com>
@maansaake
maansaake merged commit 2440c78 into main May 24, 2026
14 checks passed
@maansaake
maansaake deleted the refactor/remove-dead-info-log-path-check branch May 24, 2026 03:24
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.

3 participants