Skip to content

Commit

Permalink
fixup: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeck committed Mar 2, 2022
1 parent 554effb commit 12fe54d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/internal/bootstrap/pre_execution.js
Expand Up @@ -437,8 +437,8 @@ function initializeClusterIPC() {

function initializePolicy() {
const experimentalPolicy = getOptionValue('[has_experimental_policy_string]') ?
getOptionValue('--experimental-policy')
: null;
getOptionValue('--experimental-policy') :
null;
if (experimentalPolicy) {
process.emitWarning('Policies are experimental.',
'ExperimentalWarning');
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/modules/package_json_reader.js
Expand Up @@ -25,7 +25,7 @@ function read(jsonPath) {
const result = { string, containsKeys };
if (string !== undefined) {
if (manifest === undefined) {
manifest = policy.manifest
manifest = policy.manifest;
}
if (manifest !== null) {
const jsonURL = pathToFileURL(jsonPath);
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/policy/sri.js
Expand Up @@ -35,7 +35,7 @@ const BufferFrom = require('buffer').Buffer.from;

/**
* Strictly parses an SRI string and returns all found entries
* @param {string} str
* @param {string} str
* @returns {Array<{algorithm:string, value:string, options: string | null}>}
*/
const parse = (str) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/process/policy.js
Expand Up @@ -27,7 +27,7 @@ module.exports = ObjectFreeze({
__proto__: null,
/**
* @param {string | null} src null to not use a policy
* @param {string} url
* @param {string} url
* @returns {void}
*/
setup(src, url) {
Expand Down

0 comments on commit 12fe54d

Please sign in to comment.