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 Feb 28, 2024
1 parent 50d1ca4 commit e7185f3
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 @@ -238,7 +238,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 e7185f3

Please sign in to comment.