Skip to content

success_count is not modified in BatchResponse #18

@mwookpark

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?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions