lint: reenable revive unused-parameter check

Signed-off-by: Matt Souza <medsouz99@gmail.com>
This commit is contained in:
Matt Souza
2025-09-28 19:29:42 -04:00
parent 3747e3db3f
commit 090304a054
263 changed files with 723 additions and 724 deletions

View File

@@ -35,7 +35,7 @@ func Error(w http.ResponseWriter, code int, err error) {
WriteJSON(w, code, em)
}
func VolumeNotFound(w http.ResponseWriter, name string, err error) {
func VolumeNotFound(w http.ResponseWriter, _ string, err error) {
if errors.Is(err, define.ErrNoSuchVolume) || errors.Is(err, define.ErrVolumeExists) {
Error(w, http.StatusNotFound, err)
return
@@ -43,7 +43,7 @@ func VolumeNotFound(w http.ResponseWriter, name string, err error) {
InternalServerError(w, err)
}
func ContainerNotFound(w http.ResponseWriter, name string, err error) {
func ContainerNotFound(w http.ResponseWriter, _ string, err error) {
if errors.Is(err, define.ErrNoSuchCtr) || errors.Is(err, define.ErrCtrExists) {
Error(w, http.StatusNotFound, err)
return
@@ -51,7 +51,7 @@ func ContainerNotFound(w http.ResponseWriter, name string, err error) {
InternalServerError(w, err)
}
func ImageNotFound(w http.ResponseWriter, name string, err error) {
func ImageNotFound(w http.ResponseWriter, _ string, err error) {
if !errors.Is(err, storage.ErrImageUnknown) {
InternalServerError(w, err)
return
@@ -59,11 +59,11 @@ func ImageNotFound(w http.ResponseWriter, name string, err error) {
Error(w, http.StatusNotFound, err)
}
func ArtifactNotFound(w http.ResponseWriter, name string, err error) {
func ArtifactNotFound(w http.ResponseWriter, _ string, err error) {
Error(w, http.StatusNotFound, err)
}
func NetworkNotFound(w http.ResponseWriter, name string, err error) {
func NetworkNotFound(w http.ResponseWriter, _ string, err error) {
if !errors.Is(err, define.ErrNoSuchNetwork) {
InternalServerError(w, err)
return
@@ -71,7 +71,7 @@ func NetworkNotFound(w http.ResponseWriter, name string, err error) {
Error(w, http.StatusNotFound, err)
}
func PodNotFound(w http.ResponseWriter, name string, err error) {
func PodNotFound(w http.ResponseWriter, _ string, err error) {
if !errors.Is(err, define.ErrNoSuchPod) {
InternalServerError(w, err)
return
@@ -79,7 +79,7 @@ func PodNotFound(w http.ResponseWriter, name string, err error) {
Error(w, http.StatusNotFound, err)
}
func SessionNotFound(w http.ResponseWriter, name string, err error) {
func SessionNotFound(w http.ResponseWriter, _ string, err error) {
if !errors.Is(err, define.ErrNoSuchExecSession) {
InternalServerError(w, err)
return
@@ -87,7 +87,7 @@ func SessionNotFound(w http.ResponseWriter, name string, err error) {
Error(w, http.StatusNotFound, err)
}
func SecretNotFound(w http.ResponseWriter, nameOrID string, err error) {
func SecretNotFound(w http.ResponseWriter, _ string, err error) {
if errorhandling.Cause(err).Error() != "no such secret" {
InternalServerError(w, err)
return