mirror of
https://github.com/desktop/desktop
synced 2024-09-19 16:12:20 +00:00
We don't need to return a repository here
This commit is contained in:
parent
1ec3818086
commit
bea768a6e8
|
@ -3068,13 +3068,13 @@ export class AppStore extends TypedBaseStore<IAppState> {
|
|||
name: string,
|
||||
startPoint: string | null,
|
||||
noTrackOption: boolean = false
|
||||
): Promise<Repository> {
|
||||
): Promise<void> {
|
||||
const gitStore = this.gitStoreCache.get(repository)
|
||||
const branch = await gitStore.createBranch(name, startPoint, noTrackOption)
|
||||
|
||||
return branch === null
|
||||
? repository
|
||||
: this._checkoutBranch(repository, branch)
|
||||
if (branch !== null) {
|
||||
await this._checkoutBranch(repository, branch)
|
||||
}
|
||||
}
|
||||
|
||||
/** This shouldn't be called directly. See `Dispatcher`. */
|
||||
|
|
|
@ -481,7 +481,7 @@ export class Dispatcher {
|
|||
name: string,
|
||||
startPoint: string | null,
|
||||
noTrackOption: boolean = false
|
||||
): Promise<Repository> {
|
||||
): Promise<void> {
|
||||
return this.appStore._createBranch(
|
||||
repository,
|
||||
name,
|
||||
|
|
Loading…
Reference in a new issue