Move to extra var

This commit is contained in:
erik 2023-11-29 15:33:22 +01:00 committed by Michael Jerger
parent 7071117864
commit 9f016d3673

View file

@ -99,7 +99,8 @@ func RepositoryInbox(ctx *context.APIContext) {
*/
// make http client
client, err := api.NewClient(ctx, ctx.Doer, opt.To.GetID().String()) // ToDo: This is hacky, we need a hostname from somewhere
host := opt.To.GetID().String()
client, err := api.NewClient(ctx, ctx.Doer, host) // ToDo: This is hacky, we need a hostname from somewhere
if err != nil {
panic(err)
}