We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1035e16 commit cc9fb97Copy full SHA for cc9fb97
src/index.ts
@@ -48,7 +48,7 @@ async function isValidDirectory(dirPath: PathLike) {
48
function hasAddListenerMethods(object: EventEmitter): boolean {
49
function hasMethod(methodName: string) {
50
const method = (object as unknown as Record<string, unknown>)[methodName];
51
- if (!method || typeof method !== "function") {
+ if (typeof method !== "function") {
52
return false;
53
}
54
return true;
0 commit comments