Skip to content

Commit

Permalink
refactor: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed Sep 25, 2023
1 parent 0f1b2a0 commit 567fe1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/protocol-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class ProtocolHelpers {
Array.isArray(td.properties[propertyName].forms)
) {
for (const form of td.properties[propertyName].forms) {
if (form.href && form.href.startsWith(uriScheme) && form.contentType != null) {
if (form.href?.startsWith(uriScheme) && form.contentType != null) {
return form.contentType; // abort loop
}
}
Expand Down

0 comments on commit 567fe1e

Please sign in to comment.