Repository navigation
Drop pass-through helpers and redundant awaits - #199
Merged
Merged
Conversation
The Postgres row normalizer only forwarded to the SQLite mapper, the migrations path helper had one caller, and two async returns awaited a promise that was already the return value. Co-authored-by: Jonathan Beckman <jonathantbeckman@gmail.com>
jonbeckman
marked this pull request as ready for review
November 15, 2026 09:27
Contributor
TegamiThis repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under Create a changelog → · Changelog format No changelogs yetThis PR has no pending changelog files. If your changes require a release, add a changelog before merging. Run Managed by Tegami. |
Contributor
🟢 e2e solzero-core: 5 passed, 26 left out by filtersChange 5 files changed since 26 tests left out by filters
All 5 tests in 4 files
Tested by e2e 0.23.0 · 1m 26s · local-cloudflare · run artifacts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A few helpers only forwarded to a function that already existed, or awaited a promise that was already the return value.
normalizePostgresRowcalledmapSqliteRowToPostgresand returned it. The three copy-script call sites now callmapSqliteRowToPostgres.pgMigrationsDirreturnedresolve(INFRA_DIR, "migrations/pg")and had one caller. That path is now themigrationsDirargument.asyncfunctionsreturn awaita promise outsidetry. They now return that promise.This change has no user-visible effect. It uses the
release:nonelabel and does not add a Tegami entry.Validation
nub run typechecknub run lintnub run formatnub run config:checkwas run against the same config files on the stage-metadata branch. This pull request does not change config.nub run testwas not run. The copy mapping, migration path, and BYOK condition are unchanged.Checklist
.tegami/release entry, or explained why this pull request usesrelease:none.nub run config:check,nub run typecheck,nub run lint,nub run format, andnub run test.THIRD_PARTY_NOTICES.mdfor new third-party code or separately licensed assets.