Skip to content

Commit

Permalink
Fix stray > 0 on boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Nov 3, 2023
1 parent fd2fa64 commit 2ab280d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/plugin-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ async function validatePlugin (executionPath, argv) {
errors.push('The plugin does not have a govuk-prototype-kit.config.json file, all plugins must have this file to be valid.')
}
})
if (!errors.length > 0) {
if (!errors.length) {
console.log()
console.log(ansiColors.green('The plugin config is valid.'))
console.log()
Expand Down

0 comments on commit 2ab280d

Please sign in to comment.