2
0

Fix some golint errors

- Add comments
- Rename variables
- Remove unnecessary "else"
This commit is contained in:
Jack Christensen
2016-03-29 15:18:09 -05:00
parent 129ff96567
commit 04e9fbcc55
7 changed files with 36 additions and 19 deletions
+4 -4
View File
@@ -47,14 +47,14 @@ func (c *Conn) BeginIso(isoLevel string) (*Tx, error) {
}
func (c *Conn) begin(isoLevel string) (*Tx, error) {
var beginSql string
var beginSQL string
if isoLevel == "" {
beginSql = "begin"
beginSQL = "begin"
} else {
beginSql = fmt.Sprintf("begin isolation level %s", isoLevel)
beginSQL = fmt.Sprintf("begin isolation level %s", isoLevel)
}
_, err := c.Exec(beginSql)
_, err := c.Exec(beginSQL)
if err != nil {
return nil, err
}