Skip to content

Commit

Permalink
fix Kong usage (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Aug 7, 2023
1 parent 045836b commit f9da3ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/dialect-import/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func processDefinition(
}
processedDefs[defAddr] = struct{}{}

fmt.Fprintf(os.Stderr, "definition %s\n", defAddr)
fmt.Fprintf(os.Stderr, "processing definition %s\n", defAddr)

content, err := getDefinition(isRemote, defAddr)
if err != nil {
Expand Down Expand Up @@ -565,7 +565,7 @@ func run(args []string) error {
return err
}

_, err = parser.Parse(args)
_, err = parser.Parse(args[1:])
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/dialect-import/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func TestRun(t *testing.T) {
require.NoError(t, err)
defer os.Remove("testdialect.xml")

err = run([]string{"testdialect.xml"})
err = run([]string{"", "testdialect.xml"})
require.NoError(t, err)

_, err = os.ReadFile("testdialect/message_a_message.go")
Expand Down

0 comments on commit f9da3ee

Please sign in to comment.