Skip to content

Commit 29622c1

Browse files
authored
fix: public package check in libnpmpublish (#6530)
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]>
1 parent 7701105 commit 29622c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workspaces/libnpmpublish/lib/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const ensureProvenanceGeneration = async (registry, spec, opts) => {
272272
// the package is always private and require `--access public` to publish
273273
// with provenance.
274274
let visibility = { public: false }
275-
if (true && opts.access !== 'public') {
275+
if (opts.access !== 'public') {
276276
try {
277277
const res = await npmFetch
278278
.json(`${registry}/-/package/${spec.escapedName}/visibility`, opts)

0 commit comments

Comments
 (0)