Skip to content

Commit

Permalink
update tense
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemann committed Jul 15, 2024
1 parent 8f1a820 commit 165d579
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib/candid/serde/decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ function decodeSingle(candidType: CandidType, data: ArrayBuffer): any {
const idlType = toIdlType(candidType);

// The candid type was AzleVoid if when converted to an Idl Type it is []
const candidTypeIsAzleVoid = Array.isArray(idlType);
const candidTypeWasAzleVoid = Array.isArray(idlType);

if (candidTypeIsAzleVoid) {
if (candidTypeWasAzleVoid) {
return undefined;
}

Expand Down
4 changes: 2 additions & 2 deletions src/lib/candid/serde/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ function encodeSingle(candidType: CandidType, data: any): Uint8Array {
const idlType = toIdlType(candidType);

// The candid type was AzleVoid if when converted to an Idl Type it is []
const candidTypeIsAzleVoid = Array.isArray(idlType);
const candidTypeWasAzleVoid = Array.isArray(idlType);

if (candidTypeIsAzleVoid) {
if (candidTypeWasAzleVoid) {
return new Uint8Array(IDL.encode([], []));
}

Expand Down

0 comments on commit 165d579

Please sign in to comment.