Skip to content

Commit

Permalink
skip type check on null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceau committed Jan 28, 2024
1 parent 67cf266 commit 12064e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/replays/database_replay_provider/infer_start_time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function inferDateFromFilename(fileName: string): Date | null {
const timeReg = /\d{8}T\d{6}/g;
const filenameTime = fileName.match(timeReg);

if (filenameTime === null) {
if (filenameTime == null) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion src/replays/file_system_replay_provider/load_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function filenameToDateAndTime(fileName: string): Date | null {
const timeReg = /\d{8}T\d{6}/g;
const filenameTime = fileName.match(timeReg);

if (filenameTime === null) {
if (filenameTime == null) {
return null;
}

Expand Down

0 comments on commit 12064e7

Please sign in to comment.