Fix formatting and version formatting tools (#5540)

This commit is contained in:
Robert Kaussow
2025-09-23 00:36:46 +02:00
committed by GitHub
parent c4b1b49247
commit 8a69a1cfc6
9 changed files with 21 additions and 15 deletions

View File

@@ -91,11 +91,11 @@ func ParseRepo(str string) (user, repo string, err error) {
before, after, _ := strings.Cut(str, "/")
if before == "" || after == "" {
err = fmt.Errorf("invalid or missing repository (e.g. octocat/hello-world)")
return
return user, repo, err
}
user = before
repo = after
return
return user, repo, err
}
// Update updates the repository with values from the given Repo.