From 29622c1349b38173924058a1fb0ede9edf8a5f6f Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Tue, 13 Jun 2023 11:45:36 -0700 Subject: [PATCH] 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 --- workspaces/libnpmpublish/lib/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/libnpmpublish/lib/publish.js b/workspaces/libnpmpublish/lib/publish.js index 5b95b471ed712..554eb9bec46f8 100644 --- a/workspaces/libnpmpublish/lib/publish.js +++ b/workspaces/libnpmpublish/lib/publish.js @@ -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)