Skip to content

Refactor tor start selection to use separate conditionals#185

Merged
htrgouvea merged 2 commits intomainfrom
codex/refactor-codebase-for-style-inconsistencies
Jan 22, 2026
Merged

Refactor tor start selection to use separate conditionals#185
htrgouvea merged 2 commits intomainfrom
codex/refactor-codebase-for-style-inconsistencies

Conversation

@htrgouvea
Copy link
Owner

Motivation

  • Make the tor start selection logic explicit by using separate conditionals instead of an elsif so the init.d check is only applied when distribution is not void and control flow is clearer.

Description

  • Replace elsif (-e '/etc/init.d/tor') with if ($device{distribution} ne 'void' && -e '/etc/init.d/tor') in lib/Nipe/Component/Engine/Start.pm to select the appropriate tor start command without using elsif.

Testing

  • No automated tests were run.

Codex Task

@htrgouvea htrgouvea merged commit 38af79b into main Jan 22, 2026
5 checks passed
@htrgouvea htrgouvea deleted the codex/refactor-codebase-for-style-inconsistencies branch January 22, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments