Skip to content

Commit

Permalink
fix: remove unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
graugans committed Apr 15, 2024
1 parent 280a344 commit d4fb10b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions cmd/ovp8xx/cmd/ports.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,6 @@ func listPortsCommand(cmd *cobra.Command, args []string) error {
return nil
}

func portsGetFilterSchemaCommand(cmd *cobra.Command, args []string) error {

host, err := rootCmd.PersistentFlags().GetString("ip")
if err != nil {
return err
}

o3r := ovp8xx.NewClient(
ovp8xx.WithHost(host),
)

diag := o3r.GetDiagnosticClient()
result, err := diag.GetFilterSchema()
if err != nil {
return err
} else {
fmt.Printf("%s\n", result)
}
return nil
}

var portsCmd = &cobra.Command{
Use: "ports",
Short: "Interact with ports, also known as heads, connected to the OVP8xx",
Expand Down

0 comments on commit d4fb10b

Please sign in to comment.