Skip to content

Commit

Permalink
rename func to be more conscise
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Nov 6, 2023
1 parent 7f54130 commit 52108d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func getTopoFilePath(cmd *cobra.Command) error {
topo = "https://github.com/" + topo
}

repo, err := git.NewGitRepo(topo)
repo, err := git.NewRepo(topo)
if err != nil {
return err
}
Expand Down
4 changes: 2 additions & 2 deletions git/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ type GitRepo interface {
GetBranch() string
}

// NewGitRepo parses the given git urlPath and returns an interface
// NewRepo parses the given git urlPath and returns an interface
// that is backed by Github or Gitlab repo implementations.
func NewGitRepo(urlPath string) (GitRepo, error) {
func NewRepo(urlPath string) (GitRepo, error) {
var r GitRepo
var err error

Expand Down

0 comments on commit 52108d4

Please sign in to comment.