From 30b48de35668cac0c6bd942d860172184bc2169c Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Fri, 24 Dec 2021 02:30:07 +0000 Subject: [PATCH] Explicitly suppress error returned by DomainValueHookTLS This error is already logged, so suppresing it is not a bug. Making the suppression explicit fixes a static analysis warning. --- backend/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/backend.go b/backend/backend.go index c7ad267..38c5f5e 100644 --- a/backend/backend.go +++ b/backend/backend.go @@ -455,7 +455,7 @@ func (tx *btx) addAnswersUnderNCValueActual(ncv *ncdomain.Value, sn string) (rrs // TODO: add callback variable "OnValueReferencedFunc" to backend options so that we don't pollute this function with every hook that we want // might need to add the other attributes of tx, and sn, to the callback variable for flexibility's sake // This doesn't normally return errors, but any errors during execution will be logged. - tlshook.DomainValueHookTLS(tx.qname, ncv) + _ = tlshook.DomainValueHookTLS(tx.qname, ncv) return }