mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
adds missing return statement
This commit is contained in:
parent
9db964bf35
commit
f93d83befe
@ -89,7 +89,7 @@ func (ss *SqlStore) ensureAdminUser() error {
|
|||||||
systemUserCountQuery := m.GetSystemUserCountStatsQuery{}
|
systemUserCountQuery := m.GetSystemUserCountStatsQuery{}
|
||||||
|
|
||||||
if err := bus.Dispatch(&systemUserCountQuery); err != nil {
|
if err := bus.Dispatch(&systemUserCountQuery); err != nil {
|
||||||
fmt.Errorf("Could not determine if admin user exists: %v", err)
|
return fmt.Errorf("Could not determine if admin user exists: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if systemUserCountQuery.Result.Count > 0 {
|
if systemUserCountQuery.Result.Count > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user