diff --git a/internal/load/stockcenter/strainsyn.go b/internal/load/stockcenter/strainsyn.go index 1950d174..ef5e638e 100644 --- a/internal/load/stockcenter/strainsyn.go +++ b/internal/load/stockcenter/strainsyn.go @@ -84,7 +84,7 @@ func removeExistingSynonyms( if err != nil && status.Code(err) != codes.NotFound { return fmt.Errorf("error in listing synonyms for %s %s", entryId, err) } - if tac.Data == nil { + if tac == nil { logger.Debugf("synonym %s is absent, no need to remove it", entryId) return nil }