Skip to content

Commit

Permalink
remove unreachable code path
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Feb 1, 2024
1 parent 7453b68 commit 3113697
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/api/src/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,14 +406,7 @@ export class Record implements RecordModel {
target : target
};

// if there is already an authz payload, just pass along the record
if (this._authorization) {
latestState.rawMessage = { ...this.rawMessage };
} else {
// if there is no authz, pass options so the DWN SDK can construct and sign the record
latestState.messageOptions = this.toJSON();
}

latestState.rawMessage = { ...this.rawMessage };
const { reply } = await this._agent.sendDwnRequest(latestState);
return reply;
}
Expand Down

0 comments on commit 3113697

Please sign in to comment.