What changed, and why it matters
This commit fixes a typo in an error message by adding a missing space between two words. It does not change program behavior or fix any security issue.
No security action needed; this is a non-functional log message formatting fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change corrects a string concatenation in fmt.Errorf from ‘non bucket element’ + ‘in duplicate bucket’ to ‘non bucket element ’ + ‘in duplicate bucket’, adding a space. The identical fix is applied to the original file and a migration copy. It is purely cosmetic/log message formatting.
Changed components
payments/db/kv_duplicate_payments.gopayments/db/migration1/kv_duplicate_payments.goInspect captured patch +2 / −2
diff --git a/payments/db/kv_duplicate_payments.go b/payments/db/kv_duplicate_payments.go
index 3ac1fad..d5accf2 100644
--- a/payments/db/kv_duplicate_payments.go
+++ b/payments/db/kv_duplicate_payments.go
@@ -228,7 +228,7 @@ func fetchDuplicatePayments(paymentHashBucket kvdb.RBucket) ([]*MPPayment,
subBucket := dup.NestedReadBucket(k)
if subBucket == nil {
// We one bucket for each duplicate to be found.
- return fmt.Errorf("non bucket element" +
+ return fmt.Errorf("non bucket element " +
"in duplicate bucket")
}
diff --git a/payments/db/migration1/kv_duplicate_payments.go b/payments/db/migration1/kv_duplicate_payments.go
index 1454430..bde7b71 100644
--- a/payments/db/migration1/kv_duplicate_payments.go
+++ b/payments/db/migration1/kv_duplicate_payments.go
@@ -228,7 +228,7 @@ func fetchDuplicatePayments(paymentHashBucket kvdb.RBucket) ([]*MPPayment,
subBucket := dup.NestedReadBucket(k)
if subBucket == nil {
// We one bucket for each duplicate to be found.
- return fmt.Errorf("non bucket element" +
+ return fmt.Errorf("non bucket element " +
"in duplicate bucket")
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.