7868: Allow admin to add arguments to "docker run" commands.
[arvados.git] / services / datamanager / keep / keep.go
index dace9a8caf9086261fffd7d75bb6aa71512e8b2d..206a9c43fd4878babf0d9a5340a68b787b15b71a 100644 (file)
@@ -473,9 +473,9 @@ func SendTrashLists(arvLogger *logger.Logger, kc *keepclient.KeepClient, spl map
        client := kc.Client
 
        for url, v := range spl {
-               // We need a local variable because Update doesn't call our mutator func until later,
-               // when our list variable might have been reused by the next loop iteration.
                if arvLogger != nil {
+                       // We need a local variable because Update doesn't call our mutator func until later,
+                       // when our list variable might have been reused by the next loop iteration.
                        url := url
                        trashLen := len(v)
                        arvLogger.Update(func(p map[string]interface{}, e map[string]interface{}) {