Skip to content

Commit

Permalink
Improve return types
Browse files Browse the repository at this point in the history
ivmartel committed Aug 17, 2023
1 parent 44ee9e5 commit 9fa6560
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dicom/dicomTag.js
Original file line number Diff line number Diff line change
@@ -210,7 +210,7 @@ export function getTagFromKey(key) {
/**
* Get the TransferSyntaxUID Tag.
*
* @returns {object} The tag.
* @returns {Tag} The tag.
*/
export function getTransferSyntaxUIDTag() {
return new Tag('0002', '0010');
@@ -219,7 +219,7 @@ export function getTransferSyntaxUIDTag() {
/**
* Get the FileMetaInformationGroupLength Tag.
*
* @returns {object} The tag.
* @returns {Tag} The tag.
*/
export function getFileMetaInformationGroupLengthTag() {
return new Tag('0002', '0000');
@@ -319,7 +319,7 @@ export function isPixelDataTag(tag) {
* Get a tag from the dictionary using a tag string name.
*
* @param {string} tagName The tag string name.
* @returns {object|null} The tag object or null if not found.
* @returns {Tag|undefined} The tag object or null if not found.
*/
export function getTagFromDictionary(tagName) {
if (typeof tagName === 'undefined' || tagName === null) {
@@ -346,7 +346,7 @@ export function getTagFromDictionary(tagName) {
break;
}
}
let tag = null;
let tag;
if (foundTag) {
tag = new Tag(group, element);
}

0 comments on commit 9fa6560

Please sign in to comment.