Skip to content

Commit e6e2e42

Browse files
Update src/metrics.ts
Co-authored-by: Kevin Nagurski <[email protected]>
1 parent eba4558 commit e6e2e42

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/metrics.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,7 @@ export class MetricsProcessor implements MetricsProcessorInterface {
223223
);
224224
}
225225

226-
let targetName = target.identifier;
227-
if (target.name) {
228-
targetName = target.name;
229-
}
226+
const targetName = target.name || target.identifier;
230227

231228
const td: TargetData = {
232229
identifier: target.identifier,

0 commit comments

Comments
 (0)