Skip to content

Commit

Permalink
fix(@angular/cli): remove redundant period in deprecation warning
Browse files Browse the repository at this point in the history
As `parser.ts` currently always adds a period at the end of the warning message and the `x-deprecated` messages also have one, this removes the always added one to avoid a double period in the warning message.

Fixes:

    Option "styleext" is deprecated: Use "style" instead..

to:

    Option "styleext" is deprecated: Use "style" instead.
  • Loading branch information
cexbrayat authored and mgechev committed Dec 14, 2018
1 parent b17bc89 commit 970f24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/angular/cli/models/parser.ts
Expand Up @@ -193,7 +193,7 @@ function _assignOption(

if (option.deprecated !== undefined && option.deprecated !== false) {
deprecations.push(`Option ${JSON.stringify(option.name)} is deprecated${
typeof option.deprecated == 'string' ? ': ' + option.deprecated : ''}.`);
typeof option.deprecated == 'string' ? ': ' + option.deprecated : '.'}`);
}
} else {
let error = `Argument ${key} could not be parsed using value ${JSON.stringify(value)}.`;
Expand Down

0 comments on commit 970f24d

Please sign in to comment.