Fix code style

Signed-off-by: Crepieux Pierre <pierre.crepieux@orange.com>
This commit is contained in:
Crepieux Pierre
2021-06-01 09:46:35 +02:00
parent bb1c20d1f7
commit 4a8787891d
5 changed files with 16 additions and 12 deletions

View File

@@ -34,10 +34,11 @@ module.exports.match = function(candidates) {
// Export
module.exports.requiredMatch = function(candidates) {
matched = this.match(candidates)
var matched = this.match(candidates)
if(matched !== undefined) {
return matched
} else {
}
else {
throw new Error(util.format(
'At least one of these paths should exist: %s'
, candidates.join(', ')