Skip to content

Commit 65835c5

Browse files
committed
style(cz-commitlint): prettieer fix & remove meaningless comment
1 parent 8cd15ee commit 65835c5

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

@commitlint/cz-commitlint/src/Question.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,6 @@ export default class Question {
153153

154154
protected filter(input: string | string[]): string {
155155
let toCased;
156-
157-
// array
158-
// - multipleSelectDefaultDelimiter
159-
// - no multipleSelectDefaultDelimiter
160-
// string + multipleValueDelimiters
161-
// - split
162-
// - not split
163-
// string
164156
if (Array.isArray(input)) {
165157
toCased = this.caseFn(input, this.multipleSelectDefaultDelimiter);
166158
} else if (this.multipleValueDelimiters) {

@commitlint/load/src/load.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export default async function load(
6060
parserPreset: config.parserPreset,
6161
});
6262

63-
const preset = (pickConfig(
63+
const preset = pickConfig(
6464
mergeWith(extended, config, w)
65-
) as unknown) as UserPreset;
65+
) as unknown as UserPreset;
6666
preset.plugins = {};
6767

6868
// TODO: check if this is still necessary with the new factory based conventional changelog parsers

0 commit comments

Comments
 (0)