Skip to content

Commit ef08412

Browse files
committed
feat: optimiz with comment
1 parent 26f5b30 commit ef08412

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/vchart/src/component/axis/mixin/linear-axis-mixin.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ export class LinearAxisMixin {
163163
domainSet.add(item.domain[1]);
164164
});
165165
domain = Array.from(domainSet).sort((a, b) => a - b);
166-
return domain;
167-
}
168-
169-
if (data.length) {
166+
} else if (data.length) {
170167
const userSetBreaks = this._spec.breaks && this._spec.breaks.length;
171168
let values: any[] = [];
172169
let minDomain: number;

0 commit comments

Comments
 (0)