From e7185f3f93d0ca26d698e19f74d342cef00a901a Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Thu, 5 Oct 2023 11:14:47 +0100 Subject: [PATCH] Fix stray `> 0` on boolean check --- lib/plugins/plugin-validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/plugin-validator.js b/lib/plugins/plugin-validator.js index 9fb928cbc0..60e4758e39 100644 --- a/lib/plugins/plugin-validator.js +++ b/lib/plugins/plugin-validator.js @@ -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()