Reduce complexity in function
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user