Lint errors.

This commit is contained in:
Ian Gulliver
2016-01-07 21:10:32 -08:00
parent 67d3cf2ae5
commit 71791e567a

View File

@@ -1085,10 +1085,10 @@ BabyStats.prototype.updateDisplayIncremental_ = function(message) {
if (this.lastSleepMessage_) { if (this.lastSleepMessage_) {
var timeOnly = function(date) { var timeOnly = function(date) {
return new Date( return new Date(
0, 0, 0, 0, 0, 0,
date.getHours(), date.getHours(),
date.getMinutes(), date.getMinutes(),
date.getSeconds() date.getSeconds()
); );
}.bind(this); }.bind(this);
@@ -1119,17 +1119,17 @@ BabyStats.prototype.updateDisplayIncremental_ = function(message) {
} else { } else {
// Crosses a day boundary. // Crosses a day boundary.
var end = new Date( var end = new Date(
lastDate.getFullYear(), lastDate.getFullYear(),
lastDate.getMonth(), lastDate.getMonth(),
lastDate.getDate(), lastDate.getDate(),
23, 59, 59); 23, 59, 59);
insertBlock(lastDate, end, this.lastSleepMessage_.message.type); insertBlock(lastDate, end, this.lastSleepMessage_.message.type);
var start = new Date( var start = new Date(
date.getFullYear(), date.getFullYear(),
date.getMonth(), date.getMonth(),
date.getDate(), date.getDate(),
0, 0, 0); 0, 0, 0);
insertBlock(start, date, this.lastSleepMessage_.message.type); insertBlock(start, date, this.lastSleepMessage_.message.type);
} }