File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,13 @@ func CompareResource(
169
169
indentLevel ,
170
170
)
171
171
}
172
- // }
173
- out += fmt .Sprintf (
174
- "%s}\n " , indent ,
175
- )
176
- indentLevel --
172
+ if nilCode != "" {
173
+ // }
174
+ out += fmt .Sprintf (
175
+ "%s}\n " , indent ,
176
+ )
177
+ indentLevel --
178
+ }
177
179
}
178
180
return out
179
181
}
@@ -364,6 +366,7 @@ func compareMap(
364
366
// TODO(jaypipes): Implement this by walking the keys and struct values
365
367
// and comparing each struct individually, building up the fieldPath
366
368
// appropriately...
369
+ return ""
367
370
default :
368
371
panic ("Unsupported shape type in generate.code.compareMap: " + shape .Type )
369
372
}
@@ -431,6 +434,7 @@ func compareSlice(
431
434
// TODO(jaypipes): Implement this by walking the slice of struct values
432
435
// and comparing each struct individually, building up the fieldPath
433
436
// appropriately...
437
+ return ""
434
438
default :
435
439
panic ("Unsupported shape type in generate.code.compareSlice: " + shape .Type )
436
440
}
@@ -582,11 +586,13 @@ func compareStruct(
582
586
indentLevel ,
583
587
)
584
588
}
585
- // }
586
- out += fmt .Sprintf (
587
- "%s}\n " , indent ,
588
- )
589
- indentLevel --
589
+ if nilCode != "" {
590
+ // }
591
+ out += fmt .Sprintf (
592
+ "%s}\n " , indent ,
593
+ )
594
+ indentLevel --
595
+ }
590
596
}
591
597
return out
592
598
}
You can’t perform that action at this time.
0 commit comments