Skip to content

Commit e59bf4a

Browse files
Simplify ncit logging
1 parent ecc5620 commit e59bf4a

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/ncit/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -544,15 +544,8 @@ const uploadFile = async ({
544544
fetchExisting: false,
545545
target: 'SubClassOf',
546546
});
547-
} else if (!(
548-
erroredSourceIds.has(childSourceId)
549-
|| erroredSourceIds.has(parentSourceId)
550-
|| rejected.has(parentSourceId)
551-
|| rejected.has(childSourceId)
552-
)) {
553-
logger.warn(`Won't attempt to upload relationship for ${childSourceId} --SubClassOf-> ${parentSourceId}; one or more record(s) not loaded`);
554547
} else {
555-
logger.warn(`Won't attempt to upload relationship for ${childSourceId} --SubClassOf-> ${parentSourceId}`);
548+
logger.warn(`Can't upload relationship for ${childSourceId} --SubClassOf-> ${parentSourceId}; one or both record(s) not loaded`);
556549
}
557550
}
558551

0 commit comments

Comments
 (0)