remove some extra db.Close calls
This commit is contained in:
parent
2e0bf0147a
commit
f0acc4e357
1 changed files with 0 additions and 2 deletions
2
util.go
2
util.go
|
|
@ -105,7 +105,6 @@ func initdb() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
defer db.Close()
|
|
||||||
r := bufio.NewReader(os.Stdin)
|
r := bufio.NewReader(os.Stdin)
|
||||||
|
|
||||||
err = createuser(db, r)
|
err = createuser(db, r)
|
||||||
|
|
@ -208,7 +207,6 @@ func adduser() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
db.Close()
|
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue