Skip to content

Commit 2f5a047

Browse files
committed
Simplify issue length check
1 parent 0b45f4c commit 2f5a047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pluginCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports.runPa11y = async function ({ build, htmlFilePaths, wcagLevel }) {
2020
htmlFilePaths.map(async (path) => {
2121
try {
2222
const res = await pa11y(path, pa11yOpts)
23-
if (res.issues && res.issues.length) {
23+
if (res.issues.length) {
2424
issueCount += res.issues.length
2525
return cliReporter(res)
2626
}

0 commit comments

Comments
 (0)