Skip to content

Commit 5670c49

Browse files
committed
Fixed: Error
1 parent f6ba25d commit 5670c49

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ async function run() {
99
const repository = core.getInput('repository');
1010
const isReadmeUpdate = core.getInput('isReadmeUpdate');
1111
const safeUserList = core.getInput('safeUserList').split(",");
12-
12+
1313
const username = repository.split("/")[0];
1414
const reponame = repository.split("/")[1];
1515
const octokit = new Octokit({ auth: `token ${token}` });
@@ -53,7 +53,7 @@ async function run() {
5353
async function queryFollowingUnfollowingUsers(unfollowing, index = 0) {
5454
const follower = unfollowing.next();
5555
if( !follower.done ) {
56-
const uusername = unfollower.value[1].login;
56+
const uusername = follower.value[1].login;
5757
await octokit.users.follow({username: uusername});
5858
await queryFollowingUnfollowingUsers(unfollowing);
5959
}
@@ -70,7 +70,7 @@ async function run() {
7070
}
7171
return "-";
7272
}
73-
73+
7474
async function checkFileExistence() {
7575
try {
7676
const { data: { sha }} = await octokit.repos.getReadme({
@@ -109,7 +109,7 @@ async function run() {
109109
if(unfollowing.length > 0){
110110
await queryFollowingUnfollowingUsers(unfollowing.entries());
111111
console.log(`You followed the ${unfollowing.length} good guy${unfollowing.length > 1 ? 's' : ''}.`);
112-
}
112+
}
113113

114114
if (isReadmeUpdate) {
115115
if(unfollowers.length > 0 || unfollowing.length > 0 ) {
@@ -127,7 +127,7 @@ async function run() {
127127
<table width="100%">
128128
${formatTable(followers)}
129129
</table>
130-
130+
131131
## LICENSE
132132
Copyright (c) 2023-present [Huniko519](https://github.com/Huniko519)
133133
`;
@@ -154,7 +154,7 @@ Copyright (c) 2023-present [Huniko519](https://github.com/Huniko519)
154154
await octokit.repos.createOrUpdateFileContents(requestData);
155155
}
156156
}
157-
157+
158158
console.log("Done!");
159159
} catch (error) {
160160
console.log(error.message);

0 commit comments

Comments
 (0)