From a15506a8c3298fee1bbcc8f8983d47702dd3ac2d Mon Sep 17 00:00:00 2001 From: yaiba <4yaiba@gmail.com> Date: Mon, 24 Jul 2023 18:08:23 -0500 Subject: [PATCH] fix: assign wrong type --- cmd/root.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 3adac78..ca26c7a 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -2,7 +2,6 @@ package cmd import ( "github.com/kwilteam/kuneiform/kfparser" - "github.com/kwilteam/kuneiform/schema" "github.com/kwilteam/kuneiform/version" "log" "os" @@ -59,12 +58,11 @@ var rootCmd = &cobra.Command{ os.Exit(CodeErrReadFile) } - var db *schema.Schema parserMode := kfparser.Default if trace { parserMode = kfparser.Trace } - db, err = kfparser.ParseKF(string(data), nil, parserMode) + db, err := kfparser.ParseKF(string(data), nil, parserMode) if err != nil { cmd.Println(err) os.Exit(CodeErrParseFile)