Skip to content

Commit f0ac2b8

Browse files
committed
apply review
1 parent cf95747 commit f0ac2b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/core.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export function determineAxis(id, ...scaleOptions) {
4141
if (idMatchesAxis(id)) {
4242
return id;
4343
}
44-
for (let i = 0, n = scaleOptions.length; i < n; i++) {
45-
const opts = scaleOptions[i];
44+
for (const opts of scaleOptions) {
4645
const axis = opts.axis
4746
|| axisFromPosition(opts.position)
4847
|| id.length > 1 && idMatchesAxis(id[0].toLowerCase());

0 commit comments

Comments
 (0)