Skip to content

Commit 4d038d6

Browse files
committed
Edit missleading comment
1 parent 42b51ab commit 4d038d6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function action(_actionName, params, core) {
280280
const branch = params.branch.replace(/^refs\/heads\//, "");
281281
const to_version = yield getPackageJsonVersion({ owner, repo, branch, github_token });
282282
if (to_version === undefined) {
283-
throw new Error(`No version in package.json on ${owner}/${repo}#${branch} (or repo is private)`);
283+
throw new Error(`No version in package.json on ${owner}/${repo}#${branch}`);
284284
}
285285
core.debug(`Version on ${owner}/${repo}#${branch} is ${NpmModuleVersion_1.NpmModuleVersion.stringify(to_version)}`);
286286
const octokit = createOctokit_1.createOctokit({ github_token });

src/is_package_json_version_upgraded.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function action(
4444
const to_version = await getPackageJsonVersion({ owner, repo, branch, github_token });
4545

4646
if( to_version === undefined ){
47-
throw new Error(`No version in package.json on ${owner}/${repo}#${branch} (or repo is private)`);
47+
throw new Error(`No version in package.json on ${owner}/${repo}#${branch}`);
4848
}
4949

5050

0 commit comments

Comments
 (0)