Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit f160afa

Browse files
authored
fix: check for existence of docs before accessing url (#17)
1 parent 664b050 commit f160afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function formatResults (files, rules, config, { isModified, key, isFixJob, lintM
289289
},
290290
fix: message.fix,
291291
excerpt: `${message.message}${idTag}`,
292-
url: rule ? rule.docs.url : undefined
292+
url: rule && rule.docs ? rule.docs.url : undefined
293293
});
294294
}
295295
}

0 commit comments

Comments
 (0)