Skip to content

Commit

Permalink
Remove unnecessary group and refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Aug 9, 2023
1 parent 7021670 commit b5e363e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 0 additions & 4 deletions cmd/flow/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ func main() {
ID: "security",
Title: "🔒 Flow Security",
})
cmd.AddGroup(&cobra.Group{
ID: "flix",
Title: "Flow Interaction Templates (FLIX)",
})

cmd.SetUsageTemplate(command.UsageTemplate)

Expand Down
10 changes: 2 additions & 8 deletions internal/super/flix.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,12 @@ func isHex(str string) bool {
return false
}
_, err := hex.DecodeString(str)
if err != nil {
return false
}
return true
return err == nil
}

func isPath(path string) bool {
_, err := os.Stat(path)
if err != nil {
return false
}
return true
return err == nil
}

func getType(s string) flixQueryTypes {
Expand Down

0 comments on commit b5e363e

Please sign in to comment.