Skip to content

Commit

Permalink
fix: public package check in libnpmpublish (#6530)
Browse files Browse the repository at this point in the history
Removes a stray "true" in the boolean expression which determines
whether the package's access is "public". Does not change behavior.

Signed-off-by: Brian DeHamer <[email protected]>
  • Loading branch information
bdehamer committed Jun 13, 2023
1 parent 7701105 commit 29622c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/libnpmpublish/lib/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const ensureProvenanceGeneration = async (registry, spec, opts) => {
// the package is always private and require `--access public` to publish
// with provenance.
let visibility = { public: false }
if (true && opts.access !== 'public') {
if (opts.access !== 'public') {
try {
const res = await npmFetch
.json(`${registry}/-/package/${spec.escapedName}/visibility`, opts)
Expand Down

0 comments on commit 29622c1

Please sign in to comment.