fixed relationship issues
This commit is contained in:
@@ -18,8 +18,11 @@ type Checker struct {
|
||||
}
|
||||
|
||||
func NewChecker(conn *bun.DB, s *hws.Server) (*Checker, error) {
|
||||
if conn == nil || s == nil {
|
||||
return nil, errors.New("arguments cannot be nil")
|
||||
if conn == nil {
|
||||
return nil, errors.New("conn cannot be nil")
|
||||
}
|
||||
if s == nil {
|
||||
return nil, errors.New("server cannot be nil")
|
||||
}
|
||||
return &Checker{conn: conn, s: s}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user