Use more correct code styleguide

This commit is contained in:
Andrey Nehaychik 2018-09-27 12:11:33 +03:00
parent b5db07738d
commit 1ab3bc5316

View File

@ -537,13 +537,14 @@ func (s *DB) RecordNotFound() bool {
return false
}
return !rows.Next()
} else {
}
for _, err := range s.GetErrors() {
if err == ErrRecordNotFound {
return true
}
}
}
return false
}