Skip to content

Commit

Permalink
remove defineProperty in favor of prop
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 13, 2022
1 parent b9be4e5 commit fac3e17
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/helpers/noop.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ export const noopPromiseResolve = (responseBody = '{}', url = '') => {
url,
});

Object.defineProperty(response, 'url', { value: url, writable: false });

// eslint-disable-next-line compat/compat, consistent-return
return Promise.resolve(response);
};

0 comments on commit fac3e17

Please sign in to comment.