Commit c4718a5f authored by Mike Greiling's avatar Mike Greiling

resolve consistent-return eslint violation

[ci-skip]
parent 9d5bdb5d
/* eslint-disable no-var, vars-on-top, eqeqeq, newline-per-chained-call, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, no-unused-vars, no-else-return, max-len, class-methods-use-this */
/* eslint-disable no-var, vars-on-top, eqeqeq, newline-per-chained-call, one-var, one-var-declaration-per-line, no-unused-vars, no-else-return, max-len, class-methods-use-this */
import d3 from 'd3';
......@@ -94,10 +94,8 @@ export default class ActivityCalendar {
if (lastMonth != null) {
lastMonthX = lastMonth.x;
}
if (lastMonth == null) {
return this.months.push({ month, x });
} else if (month !== lastMonth.month && x - this.daySizeWithSpace !== lastMonthX) {
return this.months.push({ month, x });
if (lastMonth == null || (month !== lastMonth.month && x - this.daySizeWithSpace !== lastMonthX)) {
this.months.push({ month, x });
}
}
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment