mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 00:07:07 +00:00
Merge pull request #557 from jmorganca/mxyng/cleanup
fix impossible condition
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user