Skip to content

Commit 074400d

Browse files
gkalpakjasonaden
authored andcommitted
refactor(core): remove duplicate check in defaultStyleSanitizer (angular#26947)
PR Close angular#26947
1 parent 7d954df commit 074400d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/core/src/sanitization/sanitization.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,7 @@ export function sanitizeUrlOrResourceUrl(unsafeUrl: any, tag: string, prop: stri
172172
export const defaultStyleSanitizer = (function(prop: string, value?: string): string | boolean {
173173
if (value === undefined) {
174174
return prop === 'background-image' || prop === 'background' || prop === 'border-image' ||
175-
prop === 'filter' || prop === 'filter' || prop === 'list-style' ||
176-
prop === 'list-style-image';
175+
prop === 'filter' || prop === 'list-style' || prop === 'list-style-image';
177176
}
178177

179178
return sanitizeStyle(value);
@@ -200,4 +199,4 @@ export function validateAttribute(name: string) {
200199
function getSanitizer(): Sanitizer|null {
201200
const lView = getLView();
202201
return lView && lView[SANITIZER];
203-
}
202+
}

0 commit comments

Comments
 (0)