From 338bcc5cd43e2554c1189263cb910abd9db68f8e 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: Tue, 8 Oct 2019 12:29:37 +0300 Subject: [PATCH] add more descriptive comment --- pkg/drivers/response.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/drivers/response.go b/pkg/drivers/response.go index ce7aad8f..75fc64ad 100644 --- a/pkg/drivers/response.go +++ b/pkg/drivers/response.go @@ -29,8 +29,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. + // this is a safe cast. Only *HTTPResponse implements core.Value. + // HTTPResponse does not. otherResp := other.(*HTTPResponse) comp := resp.Headers.Compare(otherResp.Headers)