request.Do: use pointer to bool (#1632)

Drop the doTrue and doFalse and use a pointer to a bool to do a proper
tri-bool.
This commit is contained in:
Miek Gieben
2018-03-31 17:22:24 +01:00
committed by GitHub
parent fd1501e918
commit 5c5a98ee29
2 changed files with 14 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ func TestRequestDo(t *testing.T) {
st := testRequest()
st.Do()
if st.do == 0 {
if st.do == nil {
t.Fatalf("Expected st.do to be set")
}
}