Skip to content

Commit aaf1fbb

Browse files
JeanMechethePunderWoman
authored andcommitted
refactor(core): remove outdated comment. (angular#59401)
Should have been done by angular#58238, but was probably missed in a rebase. fixes angular#59397 PR Close angular#59401
1 parent 9b8f699 commit aaf1fbb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/render3/def_getters.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,5 @@ export function getPipeDef<T>(type: any): PipeDef<T> | null {
5050
*/
5151
export function isStandalone(type: Type<unknown>): boolean {
5252
const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type);
53-
// TODO: standalone as default value (invert the condition)
54-
return def !== null ? def.standalone : false;
53+
return def !== null && def.standalone;
5554
}

0 commit comments

Comments
 (0)