Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

nolintlint

Michael Yang8ffb51749f7d
diff --git a/cmd/cmd.go b/cmd/cmd.go
index 5a4518899..6d3958050 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -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)
diff --git a/readline/readline.go b/readline/readline.go
index ee461ae42..5215d6177 100644
--- a/readline/readline.go
+++ b/readline/readline.go
@@ -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
}()
diff --git a/server/download.go b/server/download.go
index 5a735abf9..937b6754e 100644
--- a/server/download.go
+++ b/server/download.go
@@ -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)
}
diff --git a/server/images.go b/server/images.go
index 617401261..b8497eaa8 100644
--- a/server/images.go
+++ b/server/images.go
@@ -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
}
diff --git a/server/upload.go b/server/upload.go
index 9b52238a4..aa775518b 100644
--- a/server/upload.go
+++ b/server/upload.go
@@ -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)
}