diff --git a/.github/workflows/vulncheck.yml b/.github/workflows/vulncheck.yml
index 6012fc76..7ce5a179 100644
--- a/.github/workflows/vulncheck.yml
+++ b/.github/workflows/vulncheck.yml
@@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
- go-version: 1.23.4
+ go-version: 1.23.6
- name: Get official govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
shell: bash
diff --git a/cmd/client-s3_test.go b/cmd/client-s3_test.go
index d9b3935c..e4f6b1ae 100644
--- a/cmd/client-s3_test.go
+++ b/cmd/client-s3_test.go
@@ -26,7 +26,7 @@ import (
"net/http/httptest"
"strconv"
- minio "github.com/minio/minio-go/v7"
+ "github.com/minio/minio-go/v7"
checkv1 "gopkg.in/check.v1"
)
@@ -181,13 +181,12 @@ func (h stsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Server", "MinIO")
w.Write(response)
return
- } else {
- response := []byte("AccessDeniedAccess denied: Invalid Token")
- w.Header().Set("Content-Length", strconv.Itoa(len(response)))
- w.Header().Set("Content-Type", "application/xml")
- w.Write(response)
- return
}
+ response := []byte("AccessDeniedAccess denied: Invalid Token")
+ w.Header().Set("Content-Length", strconv.Itoa(len(response)))
+ w.Header().Set("Content-Type", "application/xml")
+ w.Write(response)
+ return
}
}
diff --git a/go.mod b/go.mod
index 27cb4217..0de0ee3d 100644
--- a/go.mod
+++ b/go.mod
@@ -2,6 +2,8 @@ module github.com/minio/mc
go 1.23
+toolchain go1.23.6
+
require (
github.com/charmbracelet/bubbles v0.20.0
github.com/charmbracelet/bubbletea v1.2.4