mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-23 12:16:38 +00:00
lint
This commit is contained in:
parent
2f610eb955
commit
9a91726700
|
@ -249,7 +249,8 @@ func (p *Processor) DomainPermissionDraftAccept(
|
||||||
deleteDraft()
|
deleteDraft()
|
||||||
|
|
||||||
return new, actionID, errWithCode
|
return new, actionID, errWithCode
|
||||||
} else {
|
}
|
||||||
|
|
||||||
// Domain permission exists but we should overwrite
|
// Domain permission exists but we should overwrite
|
||||||
// it by just updating the existing domain permission.
|
// it by just updating the existing domain permission.
|
||||||
// Domain can't change, so no need to re-run side effects.
|
// Domain can't change, so no need to re-run side effects.
|
||||||
|
@ -260,7 +261,6 @@ func (p *Processor) DomainPermissionDraftAccept(
|
||||||
existing.SetObfuscate(permDraft.Obfuscate)
|
existing.SetObfuscate(permDraft.Obfuscate)
|
||||||
existing.SetSubscriptionID(permDraft.SubscriptionID)
|
existing.SetSubscriptionID(permDraft.SubscriptionID)
|
||||||
|
|
||||||
var err error
|
|
||||||
switch dp := existing.(type) {
|
switch dp := existing.(type) {
|
||||||
case *gtsmodel.DomainBlock:
|
case *gtsmodel.DomainBlock:
|
||||||
err = p.state.DB.UpdateDomainBlock(ctx, dp)
|
err = p.state.DB.UpdateDomainBlock(ctx, dp)
|
||||||
|
@ -281,7 +281,6 @@ func (p *Processor) DomainPermissionDraftAccept(
|
||||||
apiPerm, errWithCode := p.apiDomainPerm(ctx, existing, false)
|
apiPerm, errWithCode := p.apiDomainPerm(ctx, existing, false)
|
||||||
return apiPerm, "", errWithCode
|
return apiPerm, "", errWithCode
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
func (p *Processor) DomainPermissionDraftRemove(
|
func (p *Processor) DomainPermissionDraftRemove(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
|
|
Loading…
Reference in a new issue