diff --git a/schema/relationship.go b/schema/relationship.go index 6cb1a1b8..57167859 100644 --- a/schema/relationship.go +++ b/schema/relationship.go @@ -136,11 +136,7 @@ func hasPolymorphicRelation(tagSettings map[string]string) bool { _, hasType := tagSettings["POLYMORPHICTYPE"] _, hasId := tagSettings["POLYMORPHICID"] - if hasType && hasId { - return true - } - - return false + return hasType && hasId } func (schema *Schema) setRelation(relation *Relationship) {