From 043226f5d2f6958f625a8e559ac1c3176a043a70 Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Thu, 28 Dec 2023 17:35:55 +0800 Subject: [PATCH] fmt --- ast/node_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ast/node_test.go b/ast/node_test.go index 01bb5e337..8ab116692 100644 --- a/ast/node_test.go +++ b/ast/node_test.go @@ -1205,10 +1205,10 @@ func TestNodeGetByPath(t *testing.T) { func TestNodeSet(t *testing.T) { arr := NewRaw(`[]`) - ex, ee := arr.Set("a", NewNumber("-1")) - if ex || ee == nil { + ex, ee := arr.Set("a", NewNumber("-1")) + if ex || ee == nil { t.Fatal() - } + } empty := Node{} err := empty.Add(Node{}) if err != nil {