implemented @Mogge 's idea to shorten code

This commit is contained in:
Ulf Gebhardt 2021-04-14 23:39:44 +02:00
parent 1da9d430a5
commit c28910994e
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -220,9 +220,8 @@ export default {
}
if (errors.length === 0) {
return { valid: true, errors }
} else {
return { valid: false, errors }
}
return { valid: false, errors }
},
},
}