Skip to content

Commit

Permalink
fix(common): correct error judgment in BatchSend
Browse files Browse the repository at this point in the history
  • Loading branch information
rainzm committed Sep 3, 2020
1 parent a9ff6b9 commit 4c76dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common/sender.go
Expand Up @@ -84,7 +84,7 @@ func BatchSend(ctx context.Context, params *apis.BatchSendParams, singleSend fun
RemoteTemplate: params.RemoteTemplate,
}
err := singleSend(ctx, param)
if err != nil {
if err == nil {
return
}
record := &apis.FailedRecord{
Expand Down

0 comments on commit 4c76dd8

Please sign in to comment.