Skip to content

Commit 970f24d

Browse files
cexbrayatmgechev
authored andcommitted
fix(@angular/cli): remove redundant period in deprecation warning
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.
1 parent b17bc89 commit 970f24d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/angular/cli/models/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function _assignOption(
193193

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

0 commit comments

Comments
 (0)