Skip to content

Commit ea509b1

Browse files
committed
Removing redundant lines
1 parent 4c45f3c commit ea509b1

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/content/docs/durable-objects/examples/durable-object-in-memory-state.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ async function handleRequest(request, env) {
3535
export class Location extends DurableObject {
3636
constructor(state, env) {
3737
super(state, env);
38-
this.state = state;
3938
// Upon construction, you do not have a location to provide.
4039
// This value will be updated as people access the Durable Object.
4140
// When the Durable Object is evicted from memory, this will be reset.

src/content/docs/durable-objects/examples/use-kv-from-durable-objects.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ export class YourDurableObject extends DurableObject {
8080
env: Env,
8181
) {
8282
super(state, env);
83-
this.state = state;
84-
// Ensure you pass your bindings and environmental variables into
85-
// each Durable Object when it is initialized
86-
this.env = env;
8783
}
8884

8985
async fetch(request: Request) {

0 commit comments

Comments
 (0)