mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 22:28:15 +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)
|
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 {
|
if err != nil {
|
||||||
util.HandleError(err, "Could not confirm project has environment")
|
util.HandleError(err, "Could not confirm project has environment")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user