-
Notifications
You must be signed in to change notification settings - Fork 783
Closed
Labels
difficulty: easyfix is easy in difficultyfix is easy in difficultystatus: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the library
Description
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
Labels
difficulty: easyfix is easy in difficultyfix is easy in difficultystatus: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the library