Don't use pointer receiver for Collection() method in ordered collection and ordered collection page

This commit is contained in:
Marius Orcsik 2020-01-21 19:38:09 +01:00
parent 81d01659b0
commit dc8a4c2135
No known key found for this signature in database
GPG key ID: 77618B618F79EB72
2 changed files with 2 additions and 2 deletions

View file

@ -187,7 +187,7 @@ func (o OrderedCollection) IsObject() bool {
}
// Collection returns the underlying Collection type
func (o *OrderedCollection) Collection() ItemCollection {
func (o OrderedCollection) Collection() ItemCollection {
return o.OrderedItems
}

View file

@ -154,7 +154,7 @@ func (o OrderedCollectionPage) GetLink() IRI {
}
// Collection returns the underlying Collection type
func (o *OrderedCollectionPage) Collection() ItemCollection {
func (o OrderedCollectionPage) Collection() ItemCollection {
return o.OrderedItems
}