Skip to content

Commit

Permalink
refactor: missing one undefined change
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeintner committed Sep 20, 2023
1 parent 25d5390 commit e4c6590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/td-tools/src/util/asset-interface-description.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export class AssetInterfaceDescriptionUtil {
}

private getContentTypeFromEndpointMetadata(endpointMetadata?: Record<string, unknown>): string {
if (endpointMetadata?.value !== undefined && endpointMetadata.value instanceof Array) {
if (endpointMetadata?.value != null && endpointMetadata.value instanceof Array) {
for (const v of endpointMetadata.value) {
if (v.idShort === "contentType") {
// e.g., "value": "application/octet-stream;byteSeq=BIG_ENDIAN"
Expand Down

0 comments on commit e4c6590

Please sign in to comment.