Skip to content

const data = None; in client/USAGE.md #820

@yeldarby

Description

@yeldarby

Several places in this doc there's a pattern to do this:

const data = None;
request.body = data;

This pattern seems like bad practice and it's unclear what it's supposed to mean/be doing.

It appears to signify when you're not to be passing a body to the API endpoint. In most cases None is likely to be undefined. But it's not a reserved word or magic value in JavaScript and may be set to a value other than undefined elsewhere in a codebase code which may produce unexpected side effects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions