internal/repository/arangodb/annotation_delete.go
Method arangorepository.RemoveFromAnnotationGroup
has 53 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (ar *arangorepository) RemoveFromAnnotationGroup(
groupID string,
idslice ...string,
) (*model.AnnoGroup, error) {
manno := &model.AnnoGroup{}
- Create a ticketCreate a ticket
Method arangorepository.RemoveFromAnnotationGroup
has 8 return statements (exceeds 4 allowed). Open
Open
func (ar *arangorepository) RemoveFromAnnotationGroup(
groupID string,
idslice ...string,
) (*model.AnnoGroup, error) {
manno := &model.AnnoGroup{}
- Create a ticketCreate a ticket
Method arangorepository.RemoveAnnotation
has 7 return statements (exceeds 4 allowed). Open
Open
func (ar *arangorepository) RemoveAnnotation(id string, purge bool) error {
manno := &model.AnnoDoc{}
_, err := ar.anno.annot.ReadDocument(context.Background(), id, manno)
if err != nil {
if driver.IsNotFoundGeneral(err) {
- Create a ticketCreate a ticket