mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
refactor(run): set up variable before call
This commit is contained in:
@@ -138,7 +138,8 @@ var runCmd = &cobra.Command{
|
||||
|
||||
log.Debug().Msgf("Confirming selected environment is valid: %s", environmentName)
|
||||
|
||||
hasEnvironment, err := confirmProjectHasEnvironment(projectId, environmentName, token)
|
||||
var hasEnvironment bool
|
||||
hasEnvironment, err = confirmProjectHasEnvironment(environmentName, projectId, token)
|
||||
if err != nil {
|
||||
util.HandleError(err, "Could not confirm project has environment")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user