Skip to content

Commit 4d33cf1

Browse files
committed
fix initialization of names variable
1 parent ef248c5 commit 4d33cf1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ function connect() {
132132
eventAttributes["RepositoryOwnerType"]
133133
);
134134

135-
let names,
136-
shas = "";
135+
let names = "";
136+
let shas = "";
137137
for (let branch of branches) {
138138
names += `[${branch.name}](https://gitopia.com/${repoOwnerName}/${eventAttributes["RepositoryName"]}/tree/${branch.name})\n`;
139139
shas += `${branch.sha}\n`;
@@ -168,8 +168,8 @@ function connect() {
168168
return;
169169
}
170170

171-
let names,
172-
shas = "";
171+
let names = "";
172+
let shas = "";
173173
for (let branch of branches) {
174174
names += `${branch.name}\n`;
175175
shas += `${branch.sha}\n`;
@@ -214,8 +214,8 @@ function connect() {
214214
eventAttributes["RepositoryOwnerType"]
215215
);
216216

217-
let names,
218-
shas = "";
217+
let names = "";
218+
let shas = "";
219219
for (let tag of tags) {
220220
names += `[${tag.name}](https://gitopia.com/${repoOwnerName}/${eventAttributes["RepositoryName"]}/tree/${tag.name})\n`;
221221
shas += `${tag.sha}\n`;
@@ -250,8 +250,8 @@ function connect() {
250250
return;
251251
}
252252

253-
let names,
254-
shas = "";
253+
let names = "";
254+
let shas = "";
255255
for (let tag of tags) {
256256
names += `${tag.name}\n`;
257257
shas += `${tag.sha}\n`;

0 commit comments

Comments
 (0)