Skip to content

Commit

Permalink
fix: nullable variable (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
bombillazo committed Feb 18, 2024
1 parent 3d4e619 commit 5915574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lock": false,
"name": "@bartlomieju/postgres",
"version": "0.19.1",
"version": "0.19.2",
"exports": "./mod.ts"
}
2 changes: 1 addition & 1 deletion query/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export function decode(
return decoderFunc(strValue, column.typeOid, parseArray);
} // if no custom decoder is found and the oid is for an array type, check if there is
// a decoder for the base type and use that with the array parser
else if (oidType.includes("_array")) {
else if (oidType?.includes("_array")) {
const baseOidType = oidType.replace("_array", "") as OidType;
// check if the base type is in the Oid object
if (baseOidType in Oid) {
Expand Down

2 comments on commit 5915574

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No typecheck tests failure

This error was most likely caused by incorrect type stripping from the SWC crate

Please report the following failure to https://github.com/denoland/deno with a reproduction of the current commit

Failure log

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No typecheck tests failure

This error was most likely caused by incorrect type stripping from the SWC crate

Please report the following failure to https://github.com/denoland/deno with a reproduction of the current commit

Failure log

Please sign in to comment.