Merge pull request #49307 from nikhita/fuzzer-remove-unreachable-code

Automatic merge from submit-queue (batch tested with PRs 49328, 49285, 49307, 49127, 49163)

fuzzer: remove unreachable code

Remove unreachable code in fuzzers.

**Release note**:

```
NONE
```

/cc @sttts
This commit is contained in:
Kubernetes Submit Queue
2017-07-21 03:00:19 -07:00
committed by GitHub
3 changed files with 0 additions and 3 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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