/
githubmirror
/
terraform
Обзор
Документация
Войти
/
githubmirror
/
terraform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
internal/command/jsonformat/collections/action.go
19 строк
456 B
Radek Simko
make copyrightfix
17 фев 2026, 16:56
17 фев 2026, 16:56
0fe906f
Код
Авторство
О чём код?
// Copyright IBM Corp. 2014, 2026 // SPDX-License-Identifier: BUSL-1.1 package collections import "github.com/hashicorp/terraform/internal/plans" // CompareActions will compare current and next, and return plans.Update if they // are different, and current if they are the same. func CompareActions(current, next plans.Action) plans.Action { if next == plans.NoOp { return current } if current != next { return plans.Update } return current }