Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #12 from kwilteam/feature/fix-build-issue
Browse files Browse the repository at this point in the history
fix: assign wrong type
  • Loading branch information
Yaiba authored Jul 24, 2023
2 parents 8cf638d + a15506a commit 1271901
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"github.com/kwilteam/kuneiform/kfparser"
"github.com/kwilteam/kuneiform/schema"
"github.com/kwilteam/kuneiform/version"
"log"
"os"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 1271901

Please sign in to comment.