Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 92922c2

Browse files
committed
fixup! Try revoking token
1 parent afe68de commit 92922c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/post.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { tokenKey } from "./state.js";
66

77
await run(async () => {
88
const token = getState(tokenKey);
9+
if (!token) {
10+
info("No token to revoke");
11+
return;
12+
}
913
await revokeInstallationAccessToken(token);
1014
info("Token revoked successfully");
1115
await revokeInstallationAccessToken(token);

0 commit comments

Comments
 (0)