Skip to content

fix(cmd): remove dead logEnabled variable#37

Merged
pgagnidze merged 1 commit into
Owloops:mainfrom
auriti:fix/dead-code-logenabled
Apr 21, 2026
Merged

fix(cmd): remove dead logEnabled variable#37
pgagnidze merged 1 commit into
Owloops:mainfrom
auriti:fix/dead-code-logenabled

Conversation

@auriti

@auriti auriti commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Problem

logEnabled was bound via BoolVar but never read. The PersistentPreRun
closure uses := which creates a new local variable, shadowing the bound one.

Fix

Replace BoolVar with a simple Bool flag registration. No behaviour change

The logEnabled variable declared with BoolVar was never read because
it was re-declared with := inside PersistentPreRun (variable shadowing).
Replace with a simple .Bool() call without binding to a variable.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pgagnidze pgagnidze merged commit 5d382e9 into Owloops:main Apr 21, 2026
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.

2 participants