mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Fix linting in internal/command (#2798)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
@@ -828,22 +828,22 @@ func unknownAsBool(val cty.Value) cty.Value {
|
||||
}
|
||||
|
||||
func actionString(action string) []string {
|
||||
switch {
|
||||
case action == "NoOp":
|
||||
switch action {
|
||||
case "NoOp":
|
||||
return []string{"no-op"}
|
||||
case action == "Create":
|
||||
case "Create":
|
||||
return []string{"create"}
|
||||
case action == "Delete":
|
||||
case "Delete":
|
||||
return []string{"delete"}
|
||||
case action == "Update":
|
||||
case "Update":
|
||||
return []string{"update"}
|
||||
case action == "CreateThenDelete":
|
||||
case "CreateThenDelete":
|
||||
return []string{"create", "delete"}
|
||||
case action == "Read":
|
||||
case "Read":
|
||||
return []string{"read"}
|
||||
case action == "DeleteThenCreate":
|
||||
case "DeleteThenCreate":
|
||||
return []string{"delete", "create"}
|
||||
case action == "Forget":
|
||||
case "Forget":
|
||||
return []string{"forget"}
|
||||
default:
|
||||
return []string{action}
|
||||
|
||||
Reference in New Issue
Block a user