Unverified Commit 084e4c78 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #557 from jmorganca/mxyng/cleanup

fix impossible condition
parents 637f8bc6 58ffa03d
...@@ -114,10 +114,6 @@ func RunHandler(cmd *cobra.Command, args []string) error { ...@@ -114,10 +114,6 @@ func RunHandler(cmd *cobra.Command, args []string) error {
} }
mp := server.ParseModelPath(args[0]) mp := server.ParseModelPath(args[0])
if err != nil {
return err
}
if mp.ProtocolScheme == "http" && !insecure { if mp.ProtocolScheme == "http" && !insecure {
return fmt.Errorf("insecure protocol http") return fmt.Errorf("insecure protocol http")
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment