From 34c8700d3273de3ac78156850ed6c4a8abe0cf86 Mon Sep 17 00:00:00 2001 From: Max Patiiuk Date: Thu, 15 Feb 2024 21:00:32 -0800 Subject: [PATCH 1/2] docs(controllers): remove needless non-null assertion operator --- .../samples/v2-docs/controllers/names/names-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lit-dev-content/samples/v2-docs/controllers/names/names-controller.ts b/packages/lit-dev-content/samples/v2-docs/controllers/names/names-controller.ts index b849ce705..decb19631 100644 --- a/packages/lit-dev-content/samples/v2-docs/controllers/names/names-controller.ts +++ b/packages/lit-dev-content/samples/v2-docs/controllers/names/names-controller.ts @@ -6,7 +6,7 @@ export class NamesController { host: ReactiveControllerHost; value?: string[]; readonly kinds = Names.kinds; - private task!: Task<[Names.Kind], Names.Result>; + private task: Task<[Names.Kind], Names.Result>; private _kind: Names.Kind = ''; constructor(host: ReactiveControllerHost) { From 25d0cb124c2f849d55a92cea12263656ef9cf193 Mon Sep 17 00:00:00 2001 From: Max Patiiuk Date: Fri, 16 Feb 2024 17:52:55 -0800 Subject: [PATCH 2/2] docs(controllers): remove needless non-null assertion operator --- .../samples/v3-docs/controllers/names/names-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lit-dev-content/samples/v3-docs/controllers/names/names-controller.ts b/packages/lit-dev-content/samples/v3-docs/controllers/names/names-controller.ts index b849ce705..decb19631 100644 --- a/packages/lit-dev-content/samples/v3-docs/controllers/names/names-controller.ts +++ b/packages/lit-dev-content/samples/v3-docs/controllers/names/names-controller.ts @@ -6,7 +6,7 @@ export class NamesController { host: ReactiveControllerHost; value?: string[]; readonly kinds = Names.kinds; - private task!: Task<[Names.Kind], Names.Result>; + private task: Task<[Names.Kind], Names.Result>; private _kind: Names.Kind = ''; constructor(host: ReactiveControllerHost) {