add default

This commit is contained in:
Dan Anglin 2024-06-09 23:26:43 +01:00
parent 923ad3c26b
commit 251042fe8e
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -61,10 +61,10 @@ func (a *AcceptOrRejectExecutor) acceptOrRejectFollowRequest(gtsClient *client.C
return a.acceptFollowRequest(gtsClient, accountID) return a.acceptFollowRequest(gtsClient, accountID)
case "reject": case "reject":
return a.rejectFollowRequest(gtsClient, accountID) return a.rejectFollowRequest(gtsClient, accountID)
} default:
return nil return nil
} }
}
func (a *AcceptOrRejectExecutor) acceptFollowRequest(gtsClient *client.Client, accountID string) error { func (a *AcceptOrRejectExecutor) acceptFollowRequest(gtsClient *client.Client, accountID string) error {
if err := gtsClient.AcceptFollowRequest(accountID); err != nil { if err := gtsClient.AcceptFollowRequest(accountID); err != nil {