Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 1f9366d

Browse files
committed
fix not checking error
1 parent 4c1e89d commit 1f9366d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/worker/analyze/processors/basic_pull_processor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ func NewBasicPull(cfg *BasicPullConfig) *BasicPull {
6161
}
6262

6363
func storePatch(ctx context.Context, patch string, exec executors.Executor) error {
64-
f, err := ioutil.TempFile("/tmp", "golangci.diff")
65-
defer os.Remove(f.Name())
66-
64+
f, err := ioutil.TempFile("/app", "golangci.diff")
6765
if err != nil {
6866
return fmt.Errorf("can't create temp file for patch: %s", err)
6967
}
68+
defer os.Remove(f.Name())
69+
7070
if err = ioutil.WriteFile(f.Name(), []byte(patch), os.ModePerm); err != nil {
7171
return fmt.Errorf("can't write patch to temp file %s: %s", f.Name(), err)
7272
}

0 commit comments

Comments
 (0)