Skip to content

Commit

Permalink
fix: remove unecessary Buffer.from in lib/set-npmrc-auth.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Jul 30, 2018
1 parent b58e0c4 commit d79b865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/set-npmrc-auth.js
Expand Up @@ -13,7 +13,7 @@ module.exports = async (registry, {cwd, env: {NPM_TOKEN, NPM_USERNAME, NPM_PASSW
return;
}
if (NPM_USERNAME && NPM_PASSWORD && NPM_EMAIL) {
await appendFile(config, `\n_auth = ${Buffer.from(`\${LEGACY_TOKEN}\nemail = \${NPM_EMAIL}`)}`);
await appendFile(config, `\n_auth = \${LEGACY_TOKEN}\nemail = \${NPM_EMAIL}`);
logger.log(`Wrote NPM_USERNAME, NPM_PASSWORD and NPM_EMAIL to ${config}`);
} else if (NPM_TOKEN) {
await appendFile(config, `\n${nerfDart(registry)}:_authToken = \${NPM_TOKEN}`);
Expand Down

0 comments on commit d79b865

Please sign in to comment.