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(
169169 indentLevel ,
170170 )
171171 }
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+ }
177179 }
178180 return out
179181}
@@ -364,6 +366,7 @@ func compareMap(
364366 // TODO(jaypipes): Implement this by walking the keys and struct values
365367 // and comparing each struct individually, building up the fieldPath
366368 // appropriately...
369+ return ""
367370 default :
368371 panic ("Unsupported shape type in generate.code.compareMap: " + shape .Type )
369372 }
@@ -431,6 +434,7 @@ func compareSlice(
431434 // TODO(jaypipes): Implement this by walking the slice of struct values
432435 // and comparing each struct individually, building up the fieldPath
433436 // appropriately...
437+ return ""
434438 default :
435439 panic ("Unsupported shape type in generate.code.compareSlice: " + shape .Type )
436440 }
@@ -582,11 +586,13 @@ func compareStruct(
582586 indentLevel ,
583587 )
584588 }
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+ }
590596 }
591597 return out
592598}
You can’t perform that action at this time.
0 commit comments