Commit 365abedf authored by Nikhita Raghunath's avatar Nikhita Raghunath

fuzzer: remove unreachable code

parent 3660ff46
......@@ -83,7 +83,6 @@ func genericFuzzerFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
bytes, err := runtime.Encode(codec, obj)
if err != nil {
panic(fmt.Sprintf("Failed to encode object: %v", err))
return
}
// strip trailing newlines which do not survive roundtrips
......
......@@ -58,7 +58,6 @@ func overrideMetaFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
bytes, err := runtime.Encode(apitesting.TestCodec(codecs, v1.SchemeGroupVersion), obj)
if err != nil {
panic(fmt.Sprintf("Failed to encode object: %v", err))
return
}
// Set the bytes field on the RawExtension
......
......@@ -58,7 +58,6 @@ func overrideMetaFuncs(codecs runtimeserializer.CodecFactory) []interface{} {
bytes, err := runtime.Encode(apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion), obj)
if err != nil {
panic(fmt.Sprintf("Failed to encode object: %v", err))
return
}
// Set the bytes field on the RawExtension
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment