refactor(run): set up variable before call

This commit is contained in:
Mahyar Mirrashed
2025-03-13 11:41:23 -07:00
parent 0b55ac141c
commit 427201a634

View File

@@ -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")
}