Skip to content

success_count is not modified in BatchResponse #18

Description

@mwookpark

When performing success_count with BatchResponse, it looks like the following.

success_count = responses.count(:success?)

":success?" was not executed in the block, and the count was always 0.

Shouldn't it be changed to "&: method name" as shown below?

success_count = responses.count(&:success?)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions