Skip to content

Commit b0fc84f

Browse files
Zo-Bro-23rickstaa
authored andcommitted
Preview action fix (anuraghazra#2561)
* Fix error * refactor: remove unused code --------- Co-authored-by: Rick Staa <[email protected]>
1 parent 30a5df6 commit b0fc84f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/preview-theme.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const INVALID_REVIEW_COMMENT = (commentUrl) =>
4646

4747
// Retrieve octokit instance.
4848
const OCTOKIT = github.getOctokit(getGithubToken());
49-
const PULL_REQUEST_ID = prNumber ? prNumber : getPrNumber();
49+
const PULL_REQUEST_ID = getPrNumber();
5050
const { OWNER, REPO } = getRepoInfo(github.context);
5151

5252
/**
@@ -308,7 +308,7 @@ const DRY_RUN = process.env.DRY_RUN === "true" || false;
308308
/**
309309
* Main function.
310310
*/
311-
export const run = async (prNumber) => {
311+
export const run = async () => {
312312
try {
313313
debug("Retrieve action information from context...");
314314
debug(`Context: ${inspect(github.context)}`);

0 commit comments

Comments
 (0)