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