]> Cypherpunks repositories - gostls13.git/commit
database/sql: remove a couple redundancies
authordchenk <dcherchenko@gmail.com>
Thu, 12 Apr 2018 02:20:10 +0000 (19:20 -0700)
committerDaniel Theophanes <kardianos@gmail.com>
Thu, 12 Apr 2018 19:23:46 +0000 (19:23 +0000)
commit90fee59287394fb43823481e1d1bff0d5d7fb047
treea9c07661b3d366e1cb9ae005d0ebdad58ca34516
parentdbf59dadfaa688bb0c9a5162ad1622fbf0411665
database/sql: remove a couple redundancies

This commit includes efficiency improvements in two places in the
database/sql package where an "if err != nil" was redundant and
the error can be returned as-is (most of the code in the standard
library and even in the file I changed does it my suggested way).

Change-Id: Ib9dac69ed01ee846e570a776164cb87c2caee6ca
Reviewed-on: https://go-review.googlesource.com/106555
Reviewed-by: Daniel Theophanes <kardianos@gmail.com>
Run-TryBot: Daniel Theophanes <kardianos@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/database/sql/sql.go