Skip to content

Commit

Permalink
fix logging at trusted-replace-fetch-response
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-atr committed Nov 10, 2022
1 parent e8080bc commit e1b8933
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scriptlets/trusted-replace-fetch-response.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ export function trustedReplaceFetchResponse(source, pattern = '', replacement =

// Only allow pattern as empty string for logging purposes
if (pattern === '' && replacement !== '') {
const logMessage = 'log: Pattern argument should not be empty string.';
log(source, logMessage);
log('Pattern argument should not be empty string.');
return;
}
const shouldLog = pattern === '' && replacement === '';
Expand Down

0 comments on commit e1b8933

Please sign in to comment.