mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Simplify go code
Just reads a bit nicer, in my opinion.
This commit is contained in:
parent
310548cda6
commit
c5d499e514
@ -2205,7 +2205,7 @@ func TestEventuallyTrue(t *testing.T) {
|
||||
state := 0
|
||||
condition := func() bool {
|
||||
defer func() {
|
||||
state = state + 1
|
||||
state += 1
|
||||
}()
|
||||
return state == 2
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ func (rw *TestResponseWriter) Write(bytes []byte) (int, error) {
|
||||
}
|
||||
|
||||
// add these bytes to the output string
|
||||
rw.Output = rw.Output + string(bytes)
|
||||
rw.Output += string(bytes)
|
||||
|
||||
// return normal values
|
||||
return 0, nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user