summaryrefslogtreecommitdiff
path: root/edgemesh
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2021-03-24 11:57:18 +0800
committerGitHub <noreply@github.com>2021-03-24 11:57:18 +0800
commitfa3863c0aef4f497e5846a30dc104b04a54b82d0 (patch)
treea8579e322ca47a3b1d5517eed5fce01754c9977f /edgemesh
parentMerge pull request #2696 from TianTianBigWang/fix/constant (diff)
parentFix if/else statement have exactly the same implementation (diff)
downloadkubeedge-fa3863c0aef4f497e5846a30dc104b04a54b82d0.tar.gz
Merge pull request #2701 from mengjiao-liu/fix-if-else-statement
Fix if/else statement have exactly the same implementation
Diffstat (limited to 'edgemesh')
-rw-r--r--edgemesh/pkg/dns/dns.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/edgemesh/pkg/dns/dns.go b/edgemesh/pkg/dns/dns.go
index 521b5fff9..971d4a144 100644
--- a/edgemesh/pkg/dns/dns.go
+++ b/edgemesh/pkg/dns/dns.go
@@ -396,8 +396,6 @@ func modifyRspPrefix(que *dnsQuestion) (pre []byte) {
func (h *dnsHeader) convertQueryRsp(isRsp bool) {
if isRsp {
h.flags |= dnsQR
- } else {
- h.flags |= dnsQR
}
}