Skip to content

Commit defb948

Browse files
committed
small clean up
1 parent f66acb4 commit defb948

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

babel/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ function detectGitBranch() {
4545
// Netlify
4646
process.env.BRANCH;
4747
if (fromEnv) {
48-
console.info(`Using branch from env ${fromEnv}`);
4948
return fromEnv;
5049
}
5150

@@ -150,7 +149,7 @@ const plugin = function (babel, options = {}) {
150149

151150
// Always use auto-detected values
152151
const repoName = options.repo_name ? options.repo_name : currentRepoName;
153-
const branch = options.branch_name ? options.branch_name : currentRepoName;
152+
const branch = options.branch_name ? options.branch_name : currentBranch;
154153

155154
return {
156155
name: "babel-plugin-codepress-html",

src/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ function detectGitBranch() {
5050
// Netlify
5151
process.env.BRANCH;
5252
if (fromEnv) {
53-
console.info(`Using branch from env ${fromEnv}`);
5453
return fromEnv;
5554
}
5655
try {
@@ -154,7 +153,7 @@ const plugin = function (babel, options = {}) {
154153

155154
// Always use auto-detected values
156155
const repoName = options.repo_name ? options.repo_name : currentRepoName;
157-
const branch = options.branch_name ? options.branch_name : currentRepoName;
156+
const branch = options.branch_name ? options.branch_name : currentBranch;
158157

159158
return {
160159
name: "babel-plugin-codepress-html",

swc/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function detectGitBranch() {
2222
// Netlify
2323
process.env.BRANCH;
2424
if (fromEnv) {
25-
console.info(`Using branch from env ${fromEnv}`);
2625
return fromEnv;
2726
}
2827
try {

0 commit comments

Comments
 (0)