UserAuth: Fix Coverage

This commit is contained in:
Gert-Jan Timmer 2018-06-14 11:03:36 +02:00
parent 9e093e4702
commit 204cdb4d49
1 changed files with 2 additions and 6 deletions

View File

@ -132,12 +132,8 @@ func (c *SQLiteConn) authUserDelete(username string) int {
// AuthEnabled checks if the database is protected by user authentication
func (c *SQLiteConn) AuthEnabled() (exists bool) {
rv := c.authEnabled()
if rv == 1 {
exists = true
}
return
_ := c.authEnabled()
return false
}
// authEnabled perform the actual check for user authentication.