mirror of
https://github.com/portainer/portainer.git
synced 2026-06-23 04:10:29 +00:00
fix(nolint): remove unnecessary nolint directives BE-13074 (#2852)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user