From 94228e8f7af01e279fed31eafa9c930de1d265e6 Mon Sep 17 00:00:00 2001 From: Craig Anderson <1877372+CDA0@users.noreply.github.com> Date: Thu, 9 Nov 2023 10:28:12 +0000 Subject: [PATCH] error --- azuredevops/git.go | 4 ++++ 1 file changed, 4 insertions(+) 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