Skip to content

Commit 679266c

Browse files
Remove unnecessarily forcing non-undefined
1 parent f1e96f7 commit 679266c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/ql-vscode/src/view/results/locations/Location.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function Location({
2929
handleClick,
3030
}: Props): JSX.Element {
3131
const resolvableLoc = useMemo(() => tryGetResolvableLocation(loc), [loc]);
32-
const displayLabel = useMemo(() => convertNonPrintableChars(label!), [label]);
32+
const displayLabel = useMemo(() => convertNonPrintableChars(label), [label]);
3333
if (loc === undefined) {
3434
return <NonClickableLocation msg={displayLabel} />;
3535
} else if (isStringLoc(loc)) {

0 commit comments

Comments
 (0)