diff --git a/lib/routes/listobjects.go b/lib/routes/listobjects.go
index 446c366f51954841186cad3079be7df142009e5a..00b1befb320f98d6a5ae3ef3ca5ca21022e98492 100644
--- a/lib/routes/listobjects.go
+++ b/lib/routes/listobjects.go
@@ -49,7 +49,6 @@ func ListObjects(w http.ResponseWriter, r *http.Request) {
 	}
 
 	// Determine offset, limit and filter params
-	query := r.URL.Query()
 	var (
 		query = r.URL.Query()
 		limit = maxLimit