Merge pull request #206 from ericchiang/connector_config_db_fix
db: fixed missing return statement GetConnectorByID
This commit is contained in:
commit
cec3cd4451
1 changed files with 1 additions and 0 deletions
|
@ -101,6 +101,7 @@ func (r *ConnectorConfigRepo) GetConnectorByID(tx repo.Transaction, id string) (
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
return nil, connector.ErrorNotFound
|
return nil, connector.ErrorNotFound
|
||||||
}
|
}
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
return c.ConnectorConfig()
|
return c.ConnectorConfig()
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue