aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-07-31 23:23:20 -0700
committerchrislu <chris.lu@gmail.com>2025-07-31 23:23:20 -0700
commit1cba609bfa2306cc2885df212febd5ff954aa693 (patch)
tree98d2c1c5a829fca758a08a4e79ccbe658a083b77
parentcd861646a014de49795440364f58d5120e639249 (diff)
downloadseaweedfs-1cba609bfa2306cc2885df212febd5ff954aa693.tar.xz
seaweedfs-1cba609bfa2306cc2885df212febd5ff954aa693.zip
fix checking3.96
-rw-r--r--weed/admin/handlers/cluster_handlers.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/admin/handlers/cluster_handlers.go b/weed/admin/handlers/cluster_handlers.go
index 32b89acd1..38eebee8b 100644
--- a/weed/admin/handlers/cluster_handlers.go
+++ b/weed/admin/handlers/cluster_handlers.go
@@ -1,7 +1,6 @@
package handlers
import (
- "math"
"net/http"
"strconv"
@@ -251,7 +250,7 @@ func (h *ClusterHandlers) ShowEcVolumeDetails(c *gin.Context) {
}
// Check that volumeID is within uint32 range
- if volumeID < 0 || volumeID > int(math.MaxUint32) {
+ if volumeID < 0 {
c.JSON(http.StatusBadRequest, gin.H{"error": "Volume ID out of range"})
return
}