Skip to content

Commit

Permalink
Fix typing check
Browse files Browse the repository at this point in the history
  • Loading branch information
ThetaSinner committed Jul 17, 2024
1 parent 5b58ffc commit 2ea11dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/src/trycp/trycp-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class TryCpClient {
if (
response === TRYCP_SUCCESS_RESPONSE ||
typeof response === "string" ||
typeof response === "object"
(typeof response === "object" && response.length === undefined) // Some object, duck-typed to not be a bytearray
) {
logger.debug(`response ${JSON.stringify(response, null, 4)}\n`);
return response;
Expand Down

0 comments on commit 2ea11dd

Please sign in to comment.