fix impossible condition

This commit is contained in:
Michael Yang 2023-09-19 15:23:33 -07:00
parent 637f8bc6a5
commit 58ffa03d8b

View file

@ -114,10 +114,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
}
mp := server.ParseModelPath(args[0])
if err != nil {
return err
}
if mp.ProtocolScheme == "http" && !insecure {
return fmt.Errorf("insecure protocol http")
}