Skip to content

Commit

Permalink
fix golang lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Stojanov <[email protected]>
  • Loading branch information
losisin committed Nov 2, 2023
1 parent 83fc032 commit 77b4016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
coverage:
precision: 2
round: nearest
range: 50...75
range: 50...70
comment:
require_changes: true
6 changes: 2 additions & 4 deletions schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ func parseFlags(progname string, args []string) (config *Config, output string,
}

// Generate JSON schema
func generateJsonSchema(config *Config) error {
func generateJsonSchema(config *Config) {
// Check if the input flag is set
if len(config.input) == 0 {
fmt.Fprintln(os.Stderr, "Input flag is required. Please provide input yaml files using the -input flag.")
return nil
os.Exit(2)
}

var schemaUrl string
Expand Down Expand Up @@ -164,8 +164,6 @@ func generateJsonSchema(config *Config) error {
if err != nil {
fmt.Printf("Error: %v\n", err)
}

return nil
}

func main() {
Expand Down

0 comments on commit 77b4016

Please sign in to comment.