Skip to content

Commit 105be90

Browse files
committed
rename var
1 parent afd5297 commit 105be90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/components/RepoContributors.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default defineComponent({
134134
} while (response.status === 202);
135135
if (response.ok) {
136136
const data = await response.json();
137-
const {total, ...rest} = data as ContributorsData;
137+
const {total, ...other} = data as ContributorsData;
138138
// below line might be deleted if we are sure go produces map always sorted by keys
139139
total.weeks = Object.fromEntries(Object.entries(total.weeks).sort());
140140
@@ -146,7 +146,7 @@ export default defineComponent({
146146
this.xAxisMin = this.xAxisStart;
147147
this.xAxisMax = this.xAxisEnd;
148148
this.contributorsStats = {};
149-
for (const [email, user] of Object.entries(rest)) {
149+
for (const [email, user] of Object.entries(other)) {
150150
user.weeks = fillEmptyStartDaysWithZeroes(startDays, user.weeks);
151151
this.contributorsStats[email] = user;
152152
}

0 commit comments

Comments
 (0)