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
8ffb5174
Commit
8ffb5174
authored
May 21, 2024
by
Michael Yang
Browse files
nolintlint
parent
55f6eba0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
5 deletions
+4
-5
cmd/cmd.go
cmd/cmd.go
+0
-1
readline/readline.go
readline/readline.go
+1
-1
server/download.go
server/download.go
+1
-1
server/images.go
server/images.go
+1
-1
server/upload.go
server/upload.go
+1
-1
No files found.
cmd/cmd.go
View file @
8ffb5174
...
...
@@ -1030,7 +1030,6 @@ func initializeKeypair() error {
return
nil
}
//nolint:unused
func
waitForServer
(
ctx
context
.
Context
,
client
*
api
.
Client
)
error
{
// wait for the server to start
timeout
:=
time
.
After
(
5
*
time
.
Second
)
...
...
readline/readline.go
View file @
8ffb5174
...
...
@@ -81,7 +81,7 @@ func (i *Instance) Readline() (string, error) {
defer
func
()
{
fd
:=
int
(
syscall
.
Stdin
)
//
nolint:
errcheck
//nolint:errcheck
UnsetRawMode
(
fd
,
i
.
Terminal
.
termios
)
i
.
Terminal
.
rawmode
=
false
}()
...
...
server/download.go
View file @
8ffb5174
...
...
@@ -372,7 +372,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error {
return
err
}
//
nolint:
contextcheck
//nolint:contextcheck
go
download
.
Run
(
context
.
Background
(),
requestURL
,
opts
.
regOpts
)
}
...
...
server/images.go
View file @
8ffb5174
...
...
@@ -661,7 +661,7 @@ func deleteUnusedLayers(skipModelPath *ModelPath, deleteMap map[string]struct{})
// save (i.e. delete from the deleteMap) any files used in other manifests
manifest
,
_
,
err
:=
GetManifest
(
fmp
)
if
err
!=
nil
{
//
nolint:
nilerr
//nolint:nilerr
return
nil
}
...
...
server/upload.go
View file @
8ffb5174
...
...
@@ -391,7 +391,7 @@ func uploadBlob(ctx context.Context, mp ModelPath, layer *Layer, opts *registryO
return
err
}
//
nolint:
contextcheck
//nolint:contextcheck
go
upload
.
Run
(
context
.
Background
(),
opts
)
}
...
...
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