Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
58ffa03d
Commit
58ffa03d
authored
Sep 19, 2023
by
Michael Yang
Browse files
fix impossible condition
parent
637f8bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
cmd/cmd.go
cmd/cmd.go
+0
-4
No files found.
cmd/cmd.go
View file @
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"
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment