Reduce complexity in function

This commit is contained in:
Daniel García Aubert
2017-06-02 19:00:26 +02:00
parent 8bc38a375a
commit 32eeb57fce

View File

@@ -437,12 +437,7 @@ function getTimezone(timezone) {
}
var timezoneInHours = Math.ceil(timezone / 3600);
if (timezoneInHours >= 0) {
return '+' + timezoneInHours;
} else {
return '' + timezoneInHours;
}
return '' + timezoneInHours;
}
Histogram.prototype.getType = function() {