mirror of
https://github.com/golang/go
synced 2024-11-14 23:00:29 -07:00
database/sql: replace unused variables with blank identifiers
I replaced unused variables in database/sql with blank identifiers to improve code readability. This change has no impact on the functionality of the code, but makes it easier to read and understand.
This commit is contained in:
parent
70f98a251e
commit
eb40bd5e2e
@ -127,7 +127,7 @@ func driverArgsConnLocked(ci driver.Conn, ds *driverStmt, args []any) ([]driver.
|
||||
// to the column converter.
|
||||
nvc, ok := si.(driver.NamedValueChecker)
|
||||
if !ok {
|
||||
nvc, ok = ci.(driver.NamedValueChecker)
|
||||
nvc, _ = ci.(driver.NamedValueChecker)
|
||||
}
|
||||
cci, ok := si.(driver.ColumnConverter)
|
||||
if ok {
|
||||
@ -136,7 +136,7 @@ func driverArgsConnLocked(ci driver.Conn, ds *driverStmt, args []any) ([]driver.
|
||||
|
||||
// Loop through all the arguments, checking each one.
|
||||
// If no error is returned simply increment the index
|
||||
// and continue. However if driver.ErrRemoveArgument
|
||||
// and continue. However, if driver.ErrRemoveArgument
|
||||
// is returned the argument is not included in the query
|
||||
// argument list.
|
||||
var err error
|
||||
|
Loading…
Reference in New Issue
Block a user