Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2ed870a

Browse files
authored
fixed access to fields that might be nill and fixed typos (#162)
1 parent5a1084a commit2ed870a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎vcsclient/azurerepos.go‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,13 +519,19 @@ func (client *AzureReposClient) GetRepositoryInfo(ctx context.Context, owner, re
519519
Project:&client.vcsInfo.Project,
520520
})
521521
iferr!=nil {
522-
returnRepositoryInfo{},fmt.Errorf("an erroroccured while retrieving <%s/%s/%s> repository info:\n%s",owner,client.vcsInfo.Project,repository,err.Error())
522+
returnRepositoryInfo{},fmt.Errorf("an erroroccurred while retrieving <%s/%s/%s> repository info:\n%s",owner,client.vcsInfo.Project,repository,err.Error())
523523
}
524524
ifresponse==nil {
525-
returnRepositoryInfo{},fmt.Errorf("failed toretreive <%s/%s/%s> repository info, received empty response",owner,client.vcsInfo.Project,repository)
525+
returnRepositoryInfo{},fmt.Errorf("failed toretrieve <%s/%s/%s> repository info, received empty response",owner,client.vcsInfo.Project,repository)
526526
}
527527
ifresponse.Project==nil {
528-
returnRepositoryInfo{},fmt.Errorf("failed to retreive <%s/%s/%s> repository info, received empty project info",owner,client.vcsInfo.Project,repository)
528+
returnRepositoryInfo{},fmt.Errorf("failed to retrieve <%s/%s/%s> repository info, received empty project info",owner,client.vcsInfo.Project,repository)
529+
}
530+
ifresponse.RemoteUrl==nil {
531+
returnRepositoryInfo{},fmt.Errorf("failed to retrieve <%s/%s/%s> repository info, received nil HTTP clone URL",owner,client.vcsInfo.Project,repository)
532+
}
533+
ifresponse.SshUrl==nil {
534+
returnRepositoryInfo{},fmt.Errorf("failed to retrieve <%s/%s/%s> repository info, received nil SSH clone URL",owner,client.vcsInfo.Project,repository)
529535
}
530536

531537
visibility:=Private

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp