Skip to content

fix: remove incorrect bind(this) from persistence.closeConn#171

Closed
kptdobe wants to merge 1 commit into
mainfrom
fix/do-close-conn-bind
Closed

fix: remove incorrect bind(this) from persistence.closeConn#171
kptdobe wants to merge 1 commit into
mainfrom
fix/do-close-conn-bind

Conversation

@kptdobe

@kptdobe kptdobe commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

At module scope in strict mode, `this` is `undefined`. The `closeConn.bind(this)` call in the `persistence` object has no effect since `closeConn` never references `this`. Using the function directly is clearer and removes the misleading `bind`.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: kptdobe <acapt@adobe.com>
@kptdobe

kptdobe commented Jun 11, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #172 which consolidates all DO best-practice fixes.

@kptdobe kptdobe closed this Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants