Fix circular reference

This commit is contained in:
Ryan McGuire 2023-12-08 17:08:08 -05:00
parent f40079cb7f
commit 82e4f2f51e

View File

@ -34,7 +34,7 @@ func fzfSearchProjectAliases(searchString string) *gitlab.Project {
// Get fuzzy if we don't have an exact match
aliases := cache.FuzzyFindAlias(searchString)
if len(aliases) > 1 {
alias = fzfAliasFromAliases(aliasAddCmd.Context(), aliases)
alias = fzfAliasFromAliases(rootCmd.Context(), aliases)
} else if len(aliases) == 1 {
alias = aliases[0]
}