diff --git a/cmd/flow/main.go b/cmd/flow/main.go index 9613a5d08..6e3405b0e 100644 --- a/cmd/flow/main.go +++ b/cmd/flow/main.go @@ -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) diff --git a/internal/super/flix.go b/internal/super/flix.go index b8dc0f153..4c53d261d 100644 --- a/internal/super/flix.go +++ b/internal/super/flix.go @@ -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 {