Skip to content

Commit

Permalink
fix: remove invalid type check
Browse files Browse the repository at this point in the history
  • Loading branch information
armano2 committed Jan 30, 2021
1 parent 1e20607 commit b750743
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions @commitlint/load/src/utils/load-parser-opts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ function isObjectLike(obj: unknown): obj is Record<string, unknown> {
}

function isPromiseLike(obj: unknown): obj is Promise<unknown> {
return (
(typeof obj === 'object' || typeof obj === 'function') &&
typeof (obj as any).then === 'function'
);
return typeof obj === 'object' && typeof (obj as any).then === 'function';
}

function isParserOptsFunction<T extends ParserPreset>(
Expand Down

0 comments on commit b750743

Please sign in to comment.