fix: del the unreachalbe code

This commit is contained in:
luhaoling 2024-02-18 20:07:08 +08:00
parent 38461f9544
commit ecc016f1c9
2 changed files with 1 additions and 2 deletions

View File

@ -130,7 +130,7 @@ func callbackBeforeSuperGroupOnlinePush(
if err := http.CallBackPostReturn(ctx, config.Config.Callback.CallbackUrl, req, resp, config.Config.Callback.CallbackBeforeSuperGroupOnlinePush); err != nil {
return err
}
return nil
if len(resp.UserIDs) != 0 {
*pushToUserIDs = resp.UserIDs
}

View File

@ -154,7 +154,6 @@ func Start(
close(netDone)
return netErr
}
return nil
}
func gracefulStopWithCtx(ctx context.Context, f func()) error {