Skip to content

Commit 3cd394e

Browse files
author
Arvid Paeglit
committed
replaced _.now with Date.now() which is the same
1 parent cc8710f commit 3cd394e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/deepcode/lib/modules/BundlesModule.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as vscode from "vscode";
2-
import * as _ from "lodash";
32

43
import { BundlesModuleInterface } from "../../../interfaces/DeepCodeInterfaces";
54

@@ -21,8 +20,8 @@ abstract class BundlesModule extends LoginModule implements BundlesModuleInterfa
2120
constructor() {
2221
super();
2322

24-
this.lastAnalysisStartingTimestamp = _.now();
25-
this.lastAnalysisTimestamp = _.now();
23+
this.lastAnalysisStartingTimestamp = Date.now();
24+
this.lastAnalysisTimestamp = Date.now();
2625
}
2726

2827
updateStatus(status: string, progress: string) {
@@ -69,7 +68,7 @@ abstract class BundlesModule extends LoginModule implements BundlesModuleInterfa
6968
return;
7069
}
7170
this.runningAnalysis = true;
72-
this.lastAnalysisStartingTimestamp = _.now();
71+
this.lastAnalysisStartingTimestamp = Date.now();
7372

7473
let result;
7574
if (this.changedFiles.size && this.remoteBundle) {
@@ -97,7 +96,7 @@ abstract class BundlesModule extends LoginModule implements BundlesModuleInterfa
9796
});
9897
} finally {
9998
this.runningAnalysis = false;
100-
this.lastAnalysisTimestamp = _.now();
99+
this.lastAnalysisTimestamp = Date.now();
101100
this.lastAnalysisDuration = this.lastAnalysisTimestamp - this.lastAnalysisStartingTimestamp;
102101
}
103102
}

0 commit comments

Comments
 (0)