mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Quiet, linter
This commit is contained in:
@ -4,12 +4,11 @@ import (
|
||||
"bytes"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"net/http"
|
||||
|
||||
"github.com/owncast/owncast/config"
|
||||
"github.com/owncast/owncast/utils"
|
||||
log "github.com/sirupsen/logrus"
|
||||
@ -67,7 +66,7 @@ func (s *FileWriterReceiverService) uploadHandler(w http.ResponseWriter, r *http
|
||||
_, _ = io.Copy(&buf, r.Body)
|
||||
data := buf.Bytes()
|
||||
|
||||
f, err := os.Create(writePath)
|
||||
f, err := os.Create(writePath) //nolint: gosec
|
||||
if err != nil {
|
||||
returnError(err, w)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user