mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
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:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user