repository-provider
Advanced tools
Comparing version 5.7.0 to 5.7.1
@@ -280,3 +280,4 @@ 'use strict'; | ||
if (branch === undefined) { | ||
branch = await this._createBranch(name, source, options); | ||
branch = await this._createBranch(name, source === undefined ? await this.defaultBranch : source, options); | ||
this._branches.set(branch.name, branch); | ||
} | ||
@@ -286,5 +287,3 @@ return branch; | ||
async _createBranch(name, source, options) { | ||
const branch = new this.branchClass(this, name, options); | ||
this._branches.set(branch.name, branch); | ||
return branch; | ||
return new this.branchClass(this, name, options); | ||
} | ||
@@ -291,0 +290,0 @@ async deleteBranch(name) { |
{ | ||
"name": "repository-provider", | ||
"version": "5.7.0", | ||
"version": "5.7.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -162,3 +162,4 @@ import { notImplementedError } from "./util"; | ||
if (branch === undefined) { | ||
branch = await this._createBranch(name, source, options); | ||
branch = await this._createBranch(name, source === undefined ? await this.defaultBranch : source, options); | ||
this._branches.set(branch.name, branch); | ||
} | ||
@@ -178,5 +179,3 @@ | ||
async _createBranch(name, source, options) { | ||
const branch = new this.branchClass(this, name, options); | ||
this._branches.set(branch.name, branch); | ||
return branch; | ||
return new this.branchClass(this, name, options); | ||
} | ||
@@ -183,0 +182,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65663
1668