Skip to content

Commit

Permalink
refactor: code
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Jan 5, 2021
1 parent 6c2e813 commit b24f1f1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/configtest/src/index.ts
Expand Up @@ -32,13 +32,7 @@ class ConfigTestCommand {

if (error && error.length) {
if (isWebpack5) {
if (isValidationError(error)) {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
logger.error(new ValidationError(error));
} else {
logger.error(error);
}
logger.error(isValidationError(error) ? error.message : error);
} else {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
Expand Down

0 comments on commit b24f1f1

Please sign in to comment.