Skip to content

Commit 28c153a

Browse files
committed
fixup: lint
1 parent 521f044 commit 28c153a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

lib/internal/bootstrap/pre_execution.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ function initializeClusterIPC() {
437437

438438
function initializePolicy() {
439439
const experimentalPolicy = getOptionValue('[has_experimental_policy_string]') ?
440-
getOptionValue('--experimental-policy')
441-
: null;
440+
getOptionValue('--experimental-policy') :
441+
null;
442442
if (experimentalPolicy) {
443443
process.emitWarning('Policies are experimental.',
444444
'ExperimentalWarning');

lib/internal/modules/package_json_reader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function read(jsonPath) {
2525
const result = { string, containsKeys };
2626
if (string !== undefined) {
2727
if (manifest === undefined) {
28-
manifest = policy.manifest
28+
manifest = policy.manifest;
2929
}
3030
if (manifest !== null) {
3131
const jsonURL = pathToFileURL(jsonPath);

lib/internal/policy/sri.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const BufferFrom = require('buffer').Buffer.from;
3535

3636
/**
3737
* Strictly parses an SRI string and returns all found entries
38-
* @param {string} str
38+
* @param {string} str
3939
* @returns {Array<{algorithm:string, value:string, options: string | null}>}
4040
*/
4141
const parse = (str) => {

lib/internal/process/policy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = ObjectFreeze({
2727
__proto__: null,
2828
/**
2929
* @param {string | null} src null to not use a policy
30-
* @param {string} url
30+
* @param {string} url
3131
* @returns {void}
3232
*/
3333
setup(src, url) {

0 commit comments

Comments
 (0)