From babb4ffb37e04116dfdecb2b11d6d84e2c89dbbd Mon Sep 17 00:00:00 2001 From: andres-portainer <91705312+andres-portainer@users.noreply.github.com> Date: Wed, 10 Jun 2026 15:35:08 -0300 Subject: [PATCH] fix(nolint): remove unnecessary nolint directives BE-13074 (#2852) --- api/filesystem/filesystem.go | 2 +- api/http/handler/endpoints/endpoint_summary_counts.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/filesystem/filesystem.go b/api/filesystem/filesystem.go index 1d3e0db65c..28afb38bdf 100644 --- a/api/filesystem/filesystem.go +++ b/api/filesystem/filesystem.go @@ -89,7 +89,7 @@ func JoinPaths(trustedRoot string, untrustedPaths ...string) string { trustedRoot = "." } - p := filepath.Join(trustedRoot, filepath.Join(append([]string{"/"}, untrustedPaths...)...)) //nolint:forbidigo + p := filepath.Join(trustedRoot, filepath.Join(append([]string{"/"}, untrustedPaths...)...)) // avoid setting a volume name from the untrusted paths vnp := filepath.VolumeName(p) diff --git a/api/http/handler/endpoints/endpoint_summary_counts.go b/api/http/handler/endpoints/endpoint_summary_counts.go index 5767396236..271b1bc32b 100644 --- a/api/http/handler/endpoints/endpoint_summary_counts.go +++ b/api/http/handler/endpoints/endpoint_summary_counts.go @@ -93,7 +93,7 @@ func (handler *Handler) endpointSummaryCounts(w http.ResponseWriter, r *http.Req // write LastCheckInDate back to the database, so the tx value grows stale. // The tx path cannot access the in-memory map; this non-tx access is // intentional. - endpointSvc := handler.DataStore.Endpoint() //nolint:forbidigo + endpointSvc := handler.DataStore.Endpoint() for i := range endpoints { if t, ok := endpointSvc.Heartbeat(endpoints[i].ID); ok { endpoints[i].LastCheckInDate = t