Simplify go code

Just reads a bit nicer, in my opinion.
pull/910/head
Christian Muehlhaeuser 2019-07-19 23:52:52 +02:00 committed by Boyan Soubachov
parent 310548cda6
commit c5d499e514
2 changed files with 2 additions and 2 deletions

View File

@ -2205,7 +2205,7 @@ func TestEventuallyTrue(t *testing.T) {
state := 0 state := 0
condition := func() bool { condition := func() bool {
defer func() { defer func() {
state = state + 1 state += 1
}() }()
return state == 2 return state == 2
} }

View File

@ -36,7 +36,7 @@ func (rw *TestResponseWriter) Write(bytes []byte) (int, error) {
} }
// add these bytes to the output string // add these bytes to the output string
rw.Output = rw.Output + string(bytes) rw.Output += string(bytes)
// return normal values // return normal values
return 0, nil return 0, nil