Skip to content

Commit

Permalink
fixup (#7117)
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-shen authored Oct 29, 2024
1 parent 98944bf commit 5cb3f9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/wrangler/src/hyperdrive/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ export function getOriginFromArgs<
): PartialUpdate extends true ? OriginConfig | undefined : OriginConfig {
if (args.connectionString) {
const url = new URL(args.connectionString);
const errorMessages = [];
if (
url.port === "" &&
(url.protocol == "postgresql:" || url.protocol == "postgres:")
Expand All @@ -163,7 +162,7 @@ export function getOriginFromArgs<
}

if (url.protocol === "") {
errorMessages.push(
throw new UserError(
"You must specify the database protocol - e.g. 'postgresql'."
);
} else if (url.protocol !== "postgresql:" && url.protocol !== "postgres:") {
Expand Down

0 comments on commit 5cb3f9d

Please sign in to comment.