github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/command/jsonformat/collections/action.go (about) 1 package collections 2 3 import "github.com/hashicorp/terraform/internal/plans" 4 5 // CompareActions will compare current and next, and return plans.Update if they 6 // are different, and current if they are the same. 7 func CompareActions(current, next plans.Action) plans.Action { 8 if next == plans.NoOp { 9 return current 10 } 11 12 if current != next { 13 return plans.Update 14 } 15 return current 16 }