Skip to content

Commit

Permalink
fix: null check
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed May 3, 2023
1 parent d23f237 commit bf94025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/util.ts
Expand Up @@ -72,7 +72,7 @@ function getCallerFileName(): string | null {

let currentFile: string | null = null;
for (const frame of stack) {
const fileName = frame.getFileName();
const fileName = frame.getFileName() ?? null;
if (!currentFile) {
currentFile = fileName;
} else if (currentFile !== fileName) {
Expand Down

0 comments on commit bf94025

Please sign in to comment.