Skip to content

Commit 8707ac4

Browse files
cz adapter fix
1 parent 21db8b6 commit 8707ac4

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

cz-adapter/engine.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ type CZ = any;
2121
/**
2222
* The engine.
2323
*/
24-
export default {
25-
create: (
26-
options: Options,
27-
): { prompter: (cz: CZ, commit: (msg: string) => unknown) => void } => ({
28-
prompter: (cz, commit) =>
29-
promptUser(cz, options).then(doCommit(commit, options)),
30-
}),
31-
};
24+
export default (
25+
options: Options,
26+
): { prompter: (cz: CZ, commit: (msg: string) => unknown) => void } => ({
27+
prompter: (cz, commit) =>
28+
promptUser(cz, options).then(doCommit(commit, options)),
29+
});
3230

3331
/**
3432
* Prompt the user.

0 commit comments

Comments
 (0)