Skip to content

Commit

Permalink
update prompt selections to const
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Apr 20, 2023
1 parent 5a906d4 commit f79e1d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/packages/cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func init() {
}

func DomainOverridePrompt() (bool, error) {
var (
const (
PRESET = "Use Domain"
OVERRIDE = "Change Domain"
)
Expand All @@ -306,7 +306,7 @@ func DomainOverridePrompt() (bool, error) {

func askForDomain() error {
//query user to choose between Infisical cloud or self hosting
var (
const (
INFISICAL_CLOUD = "Infisical Cloud"
SELF_HOSTING = "Self Hosting"
)
Expand Down
1 change: 0 additions & 1 deletion cli/packages/util/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ func WriteInitalConfig(userCredentials *models.UserCredentials) error {
}
//if empty or if email not in loggedinUsers
if len(existingConfigFile.LoggedInUsers) == 0 || !ConfigContainsEmail(existingConfigFile.LoggedInUsers, userCredentials.Email) {

existingConfigFile.LoggedInUsers = append(existingConfigFile.LoggedInUsers, loggedInUser)
} else {
//if exists update domain of loggedin users
Expand Down

0 comments on commit f79e1d7

Please sign in to comment.