mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-08-20 07:02:09 +08:00
fix checking
This commit is contained in:
parent
cd861646a0
commit
1cba609bfa
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user