Skip to content

Commit 54d39ef

Browse files
committed
Remove code duplication
1 parent 22eeeee commit 54d39ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/impl/domain.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ export function getId(): string | undefined {
240240
* @returns {(string | undefined)}
241241
*/
242242
export function getShortId(): string | undefined {
243-
const activeDomain = getActiveDomain();
244-
const id = activeDomain && activeDomain[ID_KEY];
243+
const id = getId();
245244

246245
return id && id.substring(0, 8);
247246
}

0 commit comments

Comments
 (0)