Skip to content

Commit d4b7416

Browse files
committed
fixed bug where the schema json was dumped if format is json and schema is required to be downloaded
1 parent 9730702 commit d4b7416

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

cmd/command_schema.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ func downloadSchema(schemaFile string, schemaUrl string) Schema {
116116
} else if resp.StatusCode() != 200 {
117117
fmt.Println(resp.String())
118118
os.Exit(exitCodeInvalidStatus)
119-
} else if format == "json" {
120-
fmt.Println(resp.String())
121-
os.Exit(0)
122119
} else if err := ioutil.WriteFile(schemaFile, []byte(resp.String()), 0644); err != nil {
123120
fmt.Printf("Failed to write schemaFile (%s)", schemaFile)
124121
os.Exit(exitCodeUnexpected)

0 commit comments

Comments
 (0)