Skip to content

Commit f5ac676

Browse files
fix error
1 parent 2101bda commit f5ac676

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/git/RepositoryManager.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,22 +140,13 @@ export class RepositoryManager implements vscode.Disposable {
140140
this._expectCoverage = hasCoverageOverview
141141
this._enabledBranches = enabledBranches
142142

143-
this._disposables.push(this._current.state.onDidChange(this.handleStateChange.bind(this)))
143+
this._disposables.push(this._current.state.onDidChange(this.handleStateChange.bind(this)))
144144

145145
this.state = RepositoryManagerState.Loaded
146146

147147
this._onDidLoadRepository.fire(this._repository)
148148

149-
await this.handleBranchChange()
150-
} catch (apiError) {
151-
if (apiError instanceof OpenAPIError && apiError.status === 404) {
152-
Logger.appendLine(`Repository not found with name: ${repo.repository}.`)
153-
handleError(apiError as Error)
154-
this.state = RepositoryManagerState.NoRepository
155-
} else {
156-
throw apiError
157-
}
158-
}
149+
await this.handleBranchChange()
159150
}
160151
} catch (e) {
161152
if (e instanceof OpenAPIError && !Config.apiToken) {

0 commit comments

Comments
 (0)