Skip to content

Commit

Permalink
update linter version to 1.63.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oktalz committed Jan 5, 2025
1 parent c48b53d commit 653d38a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
var ErrMaxSizeExceeded = errors.New("file size exceeds the maximum limit of 1 GB")

// Gzip compresses the files in the srcDir directory and writes the compressed data to the destTar file.
func Gzip(srcDir string, destTar string) error { //nolint:funlen
func Gzip(srcDir string, destTar string) error {
tarFile, err := os.Create(destTar)
if err != nil {
return err
Expand Down Expand Up @@ -81,7 +81,7 @@ func Gzip(srcDir string, destTar string) error { //nolint:funlen

// UnGzip decompresses the .tar.gz file specified by srcTarGz and unpacks it to a temporary directory.
// It then sets the temporary directory as the current working directory.
func UnGzip(srcTarGz string) error { //nolint:funlen
func UnGzip(srcTarGz string) error {
const maxArchiveSize = 1024 * 1024 * 1024

// Open the gzip file
Expand Down
2 changes: 1 addition & 1 deletion handlers/sse-cast.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func CastSSE(server data.Server, config configuration.Config) http.Handler { //n
return
}
ch := make(chan string, 10)
rc := http.NewResponseController(w) //nolint:bodyclose
rc := http.NewResponseController(w)
err = rc.SetWriteDeadline(time.Time{})
if err != nil {
return
Expand Down
2 changes: 1 addition & 1 deletion handlers/sse.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func SSE(server data.Server, config configuration.Config) http.Handler { //nolin
// Create a channel for client disconnection
clientGone := r.Context().Done()

rc := http.NewResponseController(w) //nolint:bodyclose
rc := http.NewResponseController(w)
err = rc.SetWriteDeadline(time.Time{})
if err != nil {
return
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var loginPage []byte
//go:embed ui/stats.html
var statsPage []byte

func main() { //nolint:funlen
func main() {
_ = godotenv.Load("present.env")
_ = godotenv.Overload(".env")
homeDir, err := os.UserHomeDir()
Expand Down
2 changes: 1 addition & 1 deletion taskfile-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: '3'

env:
GOLANGCI_LINT_VERSION: 1.62.2
GOLANGCI_LINT_VERSION: 1.63.4

tasks:

Expand Down

0 comments on commit 653d38a

Please sign in to comment.