db: fixed missing return statement GetConnectorByID

Added missing err return introduced by #199
This commit is contained in:
Eric Chiang 2015-12-07 20:58:36 -08:00
parent 521aeae3db
commit 5295344f9e

View file

@ -101,6 +101,7 @@ func (r *ConnectorConfigRepo) GetConnectorByID(tx repo.Transaction, id string) (
if err == sql.ErrNoRows {
return nil, connector.ErrorNotFound
}
return nil, err
}
return c.ConnectorConfig()
}