What changed, and why it matters
This commit only corrects a typo in two code comments, changing 'BatchedSQLPaymentsQueries' to 'BatchedSQLQueries' so the documentation matches the actual type name. No program code, logic, or behavior was changed.
No action required; this is a documentation-only typo fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies two Go comment lines in payments/db/migration1/sql_store.go and payments/db/sql_store.go. The comments for NewSQLStore previously referenced a non-existent ‘BatchedSQLPaymentsQueries’ type; they now correctly reference the existing ‘BatchedSQLQueries’ type. There are no code changes, no interface or implementation changes, and no security implications.
Changed components
payments/db/migration1/sql_store.gopayments/db/sql_store.goInspect captured patch +2 / −2
diff --git a/payments/db/migration1/sql_store.go b/payments/db/migration1/sql_store.go
index 2129656..96ee193 100644
--- a/payments/db/migration1/sql_store.go
+++ b/payments/db/migration1/sql_store.go
@@ -138,7 +138,7 @@ type SQLStoreConfig struct {
}
// NewSQLStore creates a new SQLStore instance given an open
-// BatchedSQLPaymentsQueries storage backend.
+// BatchedSQLQueries storage backend.
func NewSQLStore(cfg *SQLStoreConfig, db BatchedSQLQueries,
options ...OptionModifier) (*SQLStore, error) {
diff --git a/payments/db/sql_store.go b/payments/db/sql_store.go
index f7cdaa9..2c97f38 100644
--- a/payments/db/sql_store.go
+++ b/payments/db/sql_store.go
@@ -139,7 +139,7 @@ type SQLStoreConfig struct {
}
// NewSQLStore creates a new SQLStore instance given an open
-// BatchedSQLPaymentsQueries storage backend.
+// BatchedSQLQueries storage backend.
func NewSQLStore(cfg *SQLStoreConfig, db BatchedSQLQueries,
options ...OptionModifier) (*SQLStore, error) {
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.