Skip to content

fix: correct RETH_PRUNING_ARGS condition logic#1114

Open
Arvuno wants to merge 2 commits into
base:mainfrom
Arvuno:pr/reth-pruning-condition
Open

fix: correct RETH_PRUNING_ARGS condition logic#1114
Arvuno wants to merge 2 commits into
base:mainfrom
Arvuno:pr/reth-pruning-condition

Conversation

@Arvuno
Copy link
Copy Markdown

@Arvuno Arvuno commented May 31, 2026

The condition '${var+x}' returns 'x' when the variable is unset, making the check TRUE when the variable is actually empty — and FALSE when it has a value. This is backwards: pruning args are silently dropped when set, and the echo statement runs with an empty value when unset.

Fix using '${var:-}' with '-n' to correctly test non-empty values.

Hermes Agent added 2 commits May 31, 2026 14:13
The previous condition '' returns 'x' when the variable is
unset, making the check TRUE when it should be FALSE, and vice
versa. The correct check is '-n' to test whether the variable is
non-empty.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

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