Skip to content

Commit

Permalink
Apply gofmt changes to repopath.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rmacklin authored and dlvhdr committed Mar 4, 2024
1 parent 71df4ec commit 44f2b46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/common/repopath.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ func GetRepoLocalPath(repoName string, cfgPaths map[string]string) (string, bool
wildcardPath, wildcardFound := cfgPaths[fmt.Sprintf("%s/*", owner)]

if wildcardFound {
// adjust wildcard match to wildcard path - ~/somepath/* to ~/somepath/{repo}
return fmt.Sprintf("%s/%s", strings.TrimSuffix(wildcardPath, "/*"), repo), true
// adjust wildcard match to wildcard path - ~/somepath/* to ~/somepath/{repo}
return fmt.Sprintf("%s/%s", strings.TrimSuffix(wildcardPath, "/*"), repo), true
}

if defaultPath, found := cfgPaths["default_path"]; found {
Expand Down

0 comments on commit 44f2b46

Please sign in to comment.