diff --git a/azuredevops/git.go b/azuredevops/git.go index 7cbd3db..88cf098 100644 --- a/azuredevops/git.go +++ b/azuredevops/git.go @@ -1,6 +1,8 @@ package azuredevops import ( + "fmt" + "github.com/microsoft/azure-devops-go-api/azuredevops/git" ) @@ -19,6 +21,8 @@ func (a *AzureDevOps) GetFileContent(projectName string, repoName string, versio vt = git.GitVersionTypeValues.Commit case "tag": vt = git.GitVersionTypeValues.Tag + default: + return nil, fmt.Errorf("unknown version type: %s", versionType) } includeContent := true