Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
Co-authored-by: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
  • Loading branch information
Mamaduka and tyxla committed Jul 16, 2024
1 parent 23ea0c1 commit c8ae4b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-data/src/utils/user-permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function getUserPermissionsFromResponse( response ) {
const permissions = {};

// Optional chaining operator is used here because the API requests don't
// return the expected result in the native version. Instead, API requests
// return the expected result in the React native version. Instead, API requests
// only return the result, without including response properties like the headers.
const allowedMethods = response.headers?.get( 'allow' ) || '';

Expand Down

0 comments on commit c8ae4b6

Please sign in to comment.