mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
fuzzer: remove unreachable code
This commit is contained in:
parent
3660ff466f
commit
365abedff5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user