Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
Co-authored-by: Marin Atanasov <[email protected]>
  • Loading branch information
Mamaduka and tyxla authored Jul 16, 2024
1 parent 47da462 commit c38b9e3
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 allowHeader = response.headers?.get( 'allow' );
const allowedMethods = allowHeader?.allow || allowHeader || '';
Expand Down

0 comments on commit c38b9e3

Please sign in to comment.