Skip to content

Commit 267286d

Browse files
committed
Adds var to code
1 parent 25194fc commit 267286d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,7 @@
333333
* @return New AppEvent instance.
334334
*/
335335
function fillStacktrace(error, logLevel, classification, stackFrames) {
336-
var type = (typeof error === 'object') ? 'error.constructor.name' : (typeof error).toString();
337-
console.log("test:" + type)
336+
var type = (typeof error === 'object') ? error.constructor.name : (typeof error).toString();
338337

339338
var newEvent = _this.createAppEvent(logLevel ? logLevel : "Error", classification ? classification : "issue", type, error.toString());
340339
newEvent.eventStacktrace = new TrakerrApi.Stacktrace();
@@ -404,7 +403,7 @@
404403
var cpu = cpus[i];
405404

406405
//Total up the time in the cores tick
407-
for (stats in cpu.times) {
406+
for (var stats in cpu.times) {
408407
totalTick += cpu.times[stats];
409408
}
410409

0 commit comments

Comments
 (0)