From acdec619feb697354f1f75da72ca700cdaff1610 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 24 Jul 2023 13:44:22 +0800 Subject: [PATCH] chore: there's no need to use fmt.Sprintf --- node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.go b/node.go index 4bf3697..941a489 100644 --- a/node.go +++ b/node.go @@ -268,7 +268,7 @@ func (n *Node) GetFilter(outgoingEdges []DagEdge) string { if v != "" { args = append(args, fmt.Sprintf("%s=%s", k, v)) } else { - args = append(args, fmt.Sprintf("%s", k)) + args = append(args, k) } } ret = escapeChars(n.name, "\\'=:")