Merge pull request #557 from jmorganca/mxyng/cleanup

fix impossible condition
This commit is contained in:
Michael Yang 2023-09-20 11:51:01 -07:00 committed by GitHub
commit 084e4c782a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")
}