From 56d1216f78f8c273a3007d38da2807ad6cf23d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=A4?= =?UTF-8?q?=D0=B5=D1=82=D0=B8=D1=81=D0=BE=D0=B2?= Date: Mon, 7 Oct 2019 22:45:40 +0300 Subject: [PATCH] add comment about safe cast --- pkg/drivers/response.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/drivers/response.go b/pkg/drivers/response.go index 45e688f6..ae156613 100644 --- a/pkg/drivers/response.go +++ b/pkg/drivers/response.go @@ -30,6 +30,8 @@ func (resp *HTTPResponse) Compare(other core.Value) int64 { return Compare(HTTPResponseType, other.Type()) } + // it's a safe cast because HTTPResponse doesn't implement + // core.Value. otherResp := other.(*HTTPResponse) comp := resp.Headers.Compare(otherResp.Headers)