diff options
author | Mohammad Abbasi <mohammad.v184@gmail.com> | 2023-03-12 00:23:14 +0000 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2024-04-02 01:32:55 +0000 |
commit | e565720e4920fe14eaeac55c8a271444d5499e44 (patch) | |
tree | d6cfa6e2261458bc200569c9ca15e8d266f991af /src/database | |
parent | cd294f55ca1a419ce21242731591b4f946f9a679 (diff) | |
download | go-e565720e4920fe14eaeac55c8a271444d5499e44.tar.gz go-e565720e4920fe14eaeac55c8a271444d5499e44.zip |
database/sql: refactor unused variables to use blank identifiers
Hi
I've 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.
Change-Id: I701e93fd9bf86725f411085bf2e8f8e6b235af14
GitHub-Last-Rev: eb40bd5e2ef9e28871fae2e97b4433e8d6e2c652
GitHub-Pull-Request: golang/go#58986
Reviewed-on: https://go-review.googlesource.com/c/go/+/475675
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/sql/convert.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/database/sql/convert.go b/src/database/sql/convert.go index b291c1557c..dac3f246ae 100644 --- a/src/database/sql/convert.go +++ b/src/database/sql/convert.go @@ -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 |