mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-02 18:08:30 +02:00
spdx (#581)
Co-authored-by: techknowlogick <hello@techknowlogick.com> Co-committed-by: techknowlogick <hello@techknowlogick.com>
This commit is contained in:

committed by
techknowlogick

parent
2d57e07dc7
commit
b868d30434
@ -1,12 +1,10 @@
|
||||
// Copyright 2020 The Gitea Authors. All rights reserved.
|
||||
// Use of this source code is governed by a MIT-style
|
||||
// license that can be found in the LICENSE file.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package task
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
@ -53,7 +51,7 @@ func SavePullDiff(ctx *context.TeaContext, idx int64) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
writer, err := ioutil.TempFile(os.TempDir(), fmt.Sprintf("pull-%d-review-*.diff", idx))
|
||||
writer, err := os.CreateTemp(os.TempDir(), fmt.Sprintf("pull-%d-review-*.diff", idx))
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
Reference in New Issue
Block a user