style: fix golangci-lint errors
This commit is contained in:
parent
5d6bf8c5cd
commit
1f20aa3105
|
@ -43,9 +43,12 @@ func (e *Sandbox) Run(cmd stage.Cmd) (*stage.Result, error) {
|
|||
func (e *Sandbox) Cleanup() error {
|
||||
slog.Info("sandbox cleanup")
|
||||
for _, fileID := range e.cachedMap {
|
||||
e.execClient.FileDelete(context.TODO(), &pb.FileID{
|
||||
_, err := e.execClient.FileDelete(context.TODO(), &pb.FileID{
|
||||
FileID: fileID,
|
||||
})
|
||||
if err != nil {
|
||||
slog.Error("sandbox cleanup", "error", err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -115,7 +115,6 @@ type Result struct {
|
|||
FileIDs map[string]string `json:"fileIds,omitempty"`
|
||||
FileError []FileError `json:"fileError,omitempty"`
|
||||
|
||||
files []string
|
||||
Buffs map[string][]byte `json:"-"`
|
||||
}
|
||||
|
||||
|
|
|
@ -55,6 +55,9 @@ func Run(stages []Stage) []StageResult {
|
|||
|
||||
func Cleanup() {
|
||||
for _, executor := range executorMap {
|
||||
executor.Cleanup()
|
||||
err := executor.Cleanup()
|
||||
if err != nil {
|
||||
slog.Error("executor cleanup error", "error", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user