Skip to content

Commit 7226e8d

Browse files
committed
style: adjustcode style
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent aeba171 commit 7226e8d

File tree

5 files changed

+2
-7
lines changed

5 files changed

+2
-7
lines changed

examples/node/typescript/example.cjs/src/example.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jsonValidator.validate(serializedJson)
6565
if (err instanceof CDX.Validation.MissingOptionalDependencyError) {
6666
console.info('JSON validation skipped:', err)
6767
} else {
68-
/* eslint-disable-next-line @typescript-eslint/only-throw-error -- forward */
68+
6969
throw err
7070
}
7171
})
@@ -87,7 +87,7 @@ xmlValidator.validate(serializedXML)
8787
if (err instanceof CDX.Validation.MissingOptionalDependencyError) {
8888
console.info('XML validation skipped:', err)
8989
} else {
90-
/* eslint-disable-next-line @typescript-eslint/only-throw-error -- forward */
90+
9191
throw err
9292
}
9393
})

examples/node/typescript/example.mjs/src/example.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ try {
6565
if (err instanceof CDX.Validation.MissingOptionalDependencyError) {
6666
console.info('JSON validation skipped:', err)
6767
} else {
68-
/* eslint-disable-next-line @typescript-eslint/only-throw-error -- forward */
6968
throw err
7069
}
7170
}
@@ -87,7 +86,6 @@ try {
8786
if (err instanceof CDX.Validation.MissingOptionalDependencyError) {
8887
console.info('XML validation skipped:', err)
8988
} else {
90-
/* eslint-disable-next-line @typescript-eslint/only-throw-error -- forward */
9189
throw err
9290
}
9391
}

src/serialize/xmlSerializer.node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class XmlSerializer extends XmlBaseSerializer {
4444
if (err instanceof OptPlugError) {
4545
throw new MissingOptionalDependencyError(err.message, err)
4646
}
47-
/* eslint-disable-next-line @typescript-eslint/only-throw-error -- forward */
4847
throw err
4948
}
5049
}

src/validation/jsonValidator.node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ abstract class BaseJsonValidator extends BaseValidator {
4949
if (err instanceof OptPlugError) {
5050
throw new MissingOptionalDependencyError(err.message, err)
5151
}
52-
/* eslint-disable-next-line @typescript-eslint/only-throw-error -- forward */
5352
throw err
5453
}
5554
}

src/validation/xmlValidator.node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export class XmlValidator extends BaseValidator {
4444
if (err instanceof OptPlugError) {
4545
throw new MissingOptionalDependencyError(err.message, err)
4646
}
47-
/* eslint-disable-next-line @typescript-eslint/only-throw-error -- forward */
4847
throw err
4948
}
5049
}

0 commit comments

Comments
 (0)