Don't use pointer receiver for Collection() method in ordered collection and ordered collection page
This commit is contained in:
parent
81d01659b0
commit
dc8a4c2135
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue