Skip to content

Commit

Permalink
improve helper comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Oct 11, 2022
1 parent 9fa0ab1 commit b9be4e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helpers/noop.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const noopPromiseReject = () => Promise.reject(); // eslint-disable-line
/**
* Returns Promise object that is resolved with a response
* @param {string} [responseBody='{}'] value of response body
* @param {string} [url=''] value of response url
* @param {string} [url=''] value of response url to set on response object
*/
export const noopPromiseResolve = (responseBody = '{}', url = '') => {
if (typeof Response === 'undefined') {
Expand All @@ -65,6 +65,8 @@ export const noopPromiseResolve = (responseBody = '{}', url = '') => {
const response = new Response(responseBody, {
status: 200,
statusText: 'OK',
// Mock response' url to avoid adb checks
// https://github.com/AdguardTeam/Scriptlets/issues/216
url,
});

Expand Down

0 comments on commit b9be4e5

Please sign in to comment.