Skip to content

Commit 94c16f9

Browse files
authored
style: trivial changes to make lint happy (#1218)
1 parent 35d9489 commit 94c16f9

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

packages/compartment-mapper/src/compartment-map.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ const assertEntry = (allegedEntry, url) => {
467467
* @param {string} [url]
468468
* @returns {asserts compartmentMap is import('./types.js').CompartmentMapDescriptor}
469469
*/
470+
470471
export const assertCompartmentMap = (
471472
allegedCompartmentMap,
472473
url = '<unknown-compartment-map.json>',
@@ -488,5 +489,4 @@ export const assertCompartmentMap = (
488489
assertTags(tags, url);
489490
assertEntry(entry, url);
490491
assertCompartments(compartments, url);
491-
return undefined;
492492
};

packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.js

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const noTrailingSlash = path => {
2020

2121
/**
2222
* Generates values for __filename and __dirname from location
23+
*
2324
* @param {ReadPowers | ReadFn | undefined} readPowers
2425
* @param {string} location
2526
* @returns {{

packages/marshal/src/typeGuards.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ harden(isRemotable);
4949
/** @type {AssertArray} */
5050
const assertCopyArray = (array, optNameOfArray = 'Alleged array') => {
5151
const passStyle = passStyleOf(array);
52-
return assert(
52+
assert(
5353
passStyle === 'copyArray',
5454
X`${q(optNameOfArray)} ${array} must be a pass-by-copy array, not ${q(
5555
passStyle,
@@ -68,7 +68,7 @@ harden(assertCopyArray);
6868
/** @type {AssertRecord} */
6969
const assertRecord = (record, optNameOfRecord = 'Alleged record') => {
7070
const passStyle = passStyleOf(record);
71-
return assert(
71+
assert(
7272
passStyle === 'copyRecord',
7373
X`${q(optNameOfRecord)} ${record} must be a pass-by-copy record, not ${q(
7474
passStyle,
@@ -90,7 +90,7 @@ const assertRemotable = (
9090
optNameOfRemotable = 'Alleged remotable',
9191
) => {
9292
const passStyle = passStyleOf(remotable);
93-
return assert(
93+
assert(
9494
passStyle === 'remotable',
9595
X`${q(optNameOfRemotable)} ${remotable} must be a remotable, not ${q(
9696
passStyle,

packages/ses/src/transforms.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export const rejectHtmlComments = src => {
9393
* not change the meaning of the program because it only changes the contents of
9494
* those comments.
9595
*
96-
* @param { string } src
97-
* @returns { string }
96+
* @param {string} src
97+
* @returns {string}
9898
*/
9999
export const evadeHtmlCommentTest = src => {
100100
const replaceFn = match => (match[0] === '<' ? '< ! --' : '-- >');
@@ -135,8 +135,8 @@ const importPattern = new FERAL_REG_EXP(
135135
* something like that from something like importnotreally('power.js') which
136136
* is perfectly safe.
137137
*
138-
* @param { string } src
139-
* @returns { string }
138+
* @param {string} src
139+
* @returns {string}
140140
*/
141141
export const rejectImportExpressions = src => {
142142
const lineNumber = getLineNumber(src, importPattern);
@@ -162,8 +162,8 @@ export const rejectImportExpressions = src => {
162162
* the meaning of the program, depending on the binding, if any, of the lexical
163163
* variable `__import__`.
164164
*
165-
* @param { string } src
166-
* @returns { string }
165+
* @param {string} src
166+
* @returns {string}
167167
*/
168168
export const evadeImportExpressionTest = src => {
169169
const replaceFn = (_, p1, p2) => `${p1}__import__${p2}`;
@@ -206,8 +206,8 @@ const someDirectEvalPattern = new FERAL_REG_EXP(
206206
*
207207
* Exported for unit tests.
208208
*
209-
* @param { string } src
210-
* @returns { string }
209+
* @param {string} src
210+
* @returns {string}
211211
*/
212212
export const rejectSomeDirectEvalExpressions = src => {
213213
const lineNumber = getLineNumber(src, someDirectEvalPattern);

0 commit comments

Comments
 (0)