Skip to content
This repository was archived by the owner on Sep 18, 2021. It is now read-only.

Commit aea5b13

Browse files
committed
style: resolve linter issues
1 parent ab5c8b0 commit aea5b13

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

commands/cli/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66

77
func GetCommands() *cobra.Command {
88
command := &cobra.Command{
9-
Use: "cli",
10-
Short: "StackHead CLI commands",
9+
Use: "cli",
10+
Short: "StackHead CLI commands",
1111
}
1212
command.AddCommand(Validate)
1313
return command

commands/module/module.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66

77
func GetCommands() *cobra.Command {
88
command := &cobra.Command{
9-
Use: "module",
10-
Short: "StackHead module commands",
9+
Use: "module",
10+
Short: "StackHead module commands",
1111
}
1212
command.AddCommand(Validate)
1313
return command

routines/validation.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,9 @@ func Validate(filePath string, schemaFile string) {
1414
collectionAbsDir, err := filepath.Abs(collectionDir)
1515
if err != nil {
1616
panic(err)
17-
return
1817
}
1918

2019
schemaPath := filepath.Join(collectionAbsDir, "schemas", schemaFile)
21-
if err != nil {
22-
_, err = fmt.Fprintf(os.Stderr, "%s\n", err.Error())
23-
if err != nil {
24-
panic(err)
25-
}
26-
return
27-
}
2820
result, err := jsonschema.ValidateFile(filePath, schemaPath)
2921

3022
if err != nil {

0 commit comments

Comments
 (0)