Skip to content

Potential issue returning array or object #25

@paralin

Description

@paralin

You return an array for response if the response parts count is greater than one, and an object if there is a single response.

What if the response is for something like channellist and there is a single channel? The code won't know to expect an object or an array because the response could be a single or multiple number of channels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions