Browse Source

fix static checks

abhishek9686 1 tuần trước cách đây
mục cha
commit
8e57ae5f4a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      logic/acls.go

+ 1 - 1
logic/acls.go

@@ -874,7 +874,7 @@ func IsNodeAllowedToCommunicateWithAllRsrcs(node models.Node) bool {
 	} else {
 		nodeId = node.ID.String()
 	}
-	nodeTags := make(map[models.TagID]struct{})
+	var nodeTags map[models.TagID]struct{}
 	if node.Mutex != nil {
 		node.Mutex.Lock()
 		nodeTags = maps.Clone(node.Tags)