Skip to content

Commit

Permalink
fix: Remove unnecessary check for metadata, because sometimes metadat…
Browse files Browse the repository at this point in the history
…a may be coming from an outside provider (#320)
  • Loading branch information
swederik authored May 15, 2020
1 parent ed03af7 commit 4bfa047
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/imageLoader/wadors/loadImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ function loadImage(imageId, options) {
const uri = imageId.substring(7);

const promise = new Promise((resolve, reject) => {
// check to make sure we have metadata for this imageId
const metaData = metaDataManager.get(imageId);

if (metaData === undefined) {
const error = new Error(`no metadata for imageId ${imageId}`);

return reject(error);
}

// TODO: load bulk data items that we might need
const mediaType = 'multipart/related; type="application/octet-stream"'; // 'image/dicom+jp2';

Expand Down

0 comments on commit 4bfa047

Please sign in to comment.