Skip to content

Commit

Permalink
Remove workaround for go v1.11 compiler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cjslep committed Feb 28, 2019
1 parent 823ab4c commit 48e15c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pub/side_effect_actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ func (a *sideEffectActor) AuthenticateGetOutbox(c context.Context, w http.Respon

// GetOutbox delegates to the SocialProtocol.
func (a *sideEffectActor) GetOutbox(c context.Context, r *http.Request) (vocab.ActivityStreamsOrderedCollectionPage, error) {
// Compiler bug? Cannot directly return here:
// cannot use <T> as type vocab.ActivityStreamsOrderedCollectionPage in return argument
v1, v2 := a.c2s.GetOutbox(c, r)
return v1, v2
return a.c2s.GetOutbox(c, r)
}

// GetInbox delegates to the FederatingProtocol.
Expand Down

0 comments on commit 48e15c9

Please sign in to comment.