Skip to content

Commit

Permalink
fix: correct bug caused by linting
Browse files Browse the repository at this point in the history
In two places, != was replaced by !==, which caused the bug.

Ref:#237
Time-spent: 0h40m
  • Loading branch information
TBalint2000 committed Jul 22, 2024
1 parent ebc71cb commit 1ed6319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ function addEstimatedTime(commits: any[], props: Props) {
filteredCommits[0].timeSpent.estimated = firstCommitTime;
let prevCommit = filteredCommits.shift();
let curCommit = filteredCommits.shift();
while (curCommit !== null) {
// eslint-disable-next-line eqeqeq
while (curCommit != null) {
if ((curCommit.date.getTime() - prevCommit.date.getTime()) / 1000 / 60 > maxCommitDiff) {
curCommit.timeSpent.estimated = firstCommitTime;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ function addEstimatedTime(commits: any[], props: Props) {
filteredCommits[0].timeSpent.estimated = firstCommitAdd;
let prevCommit = filteredCommits.shift();
let curCommit = filteredCommits.shift();
while (curCommit !== null) {
// eslint-disable-next-line eqeqeq
while (curCommit != null) {
if ((curCommit.date.getTime() - prevCommit.date.getTime()) / 1000 / 60 > maxCommitDiff) {
curCommit.timeSpent.estimated = firstCommitAdd;
} else {
Expand Down

0 comments on commit 1ed6319

Please sign in to comment.