mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Move marked check above null check
This commit is contained in:
parent
c57ca152e6
commit
6440c83947
@ -16,6 +16,9 @@ func FormatValue(v cty.Value, indent int) string {
|
||||
if !v.IsKnown() {
|
||||
return "(known after apply)"
|
||||
}
|
||||
if v.IsMarked() {
|
||||
return "(sensitive)"
|
||||
}
|
||||
if v.IsNull() {
|
||||
ty := v.Type()
|
||||
switch {
|
||||
@ -37,9 +40,6 @@ func FormatValue(v cty.Value, indent int) string {
|
||||
return fmt.Sprintf("null /* %s */", ty.FriendlyName())
|
||||
}
|
||||
}
|
||||
if v.IsMarked() {
|
||||
return "(sensitive)"
|
||||
}
|
||||
|
||||
ty := v.Type()
|
||||
switch {
|
||||
|
Loading…
Reference in New Issue
Block a user