1
0
mirror of https://github.com/golang/go synced 2024-09-29 16:24:28 -06:00

testing: fix the code to be simple

This change modifies fuzz.go
I fixed receiver method `String()` of fuzzResult

This PR will be imported into Gerrit with the title and first
comment (this text) used to generate the subject and body of
the Gerrit change.
This commit is contained in:
sivchari 2021-11-28 00:57:33 +09:00
parent 45bae64015
commit 75ab90123a

View File

@ -423,12 +423,10 @@ type fuzzResult struct {
}
func (r fuzzResult) String() string {
s := ""
if r.Error == nil {
return s
return ""
}
s = fmt.Sprintf("%s", r.Error.Error())
return s
return r.Error.Error()
}
// fuzzCrashError is satisfied by a failing input detected while fuzzing.