Skip to content

Commit

Permalink
nolintlint
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyng committed Jun 4, 2024
1 parent 55f6eba commit 8ffb517
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion readline/readline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}()
Expand Down
2 changes: 1 addition & 1 deletion server/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
2 changes: 1 addition & 1 deletion server/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion server/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 8ffb517

Please sign in to comment.