Skip to content

Commit 6e93075

Browse files
committed
Use qmark syntax.
1 parent ce6c0bb commit 6e93075

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/sdk/src/db_connection_builder.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,13 +215,9 @@ export class DbConnectionBuilder<
215215
'Database name or address is required to connect to SpacetimeDB'
216216
);
217217
}
218-
let versionString: string | undefined = undefined;
219-
if (this.remoteModule.versionInfo) {
220-
versionString = this.remoteModule.versionInfo.cliVersion;
221-
}
222218
// We could consider making this an `onConnectError` instead of throwing here.
223219
// Ideally, it would be a compile time error, but I'm not sure how to accomplish that.
224-
ensureMinimumVersionOrThrow(versionString);
220+
ensureMinimumVersionOrThrow(this.remoteModule.versionInfo?.cliVersion);
225221

226222
return this.dbConnectionConstructor(
227223
new DbConnectionImpl({

0 commit comments

Comments
 (0)