Skip to content

Commit 47bd71c

Browse files
Refactor isDestroying and isDestroyed getters
1 parent fe5b308 commit 47bd71c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/@glimmer/component/src/-private/component.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ export default class GlimmerComponent<S = unknown> {
265265
readonly args: Readonly<Args<S>>;
266266

267267
get isDestroying(): boolean {
268-
return this[IS_DESTROYING_KEY] || false;
268+
return this[IS_DESTROYING_KEY];
269269
}
270270

271271
get isDestroyed(): boolean {
272-
return this[IS_DESTROYED_KEY] || false;
272+
return this[IS_DESTROYED_KEY];
273273
}
274274

275275
/**

0 commit comments

Comments
 (0)