Explorar o código

Rename _prepend_with_links() -> _inject_links()

Signed-off-by: Chris Corbyn <[email protected]>
d11wtq %!s(int64=11) %!d(string=hai) anos
pai
achega
c0231bdb70
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      fig/project.py

+ 2 - 2
fig/project.py

@@ -113,7 +113,7 @@ class Project(object):
             services = [s for s in self.services if s in unsorted]
 
             if include_links:
-                services = reduce(self._prepend_with_links, services, [])
+                services = reduce(self._inject_links, services, [])
 
             uniques = []
             [uniques.append(s) for s in services if s not in uniques]
@@ -158,7 +158,7 @@ class Project(object):
                 l.append(container)
         return l
 
-    def _prepend_with_links(self, acc, service):
+    def _inject_links(self, acc, service):
         linked_names = service.get_linked_names()
 
         if len(linked_names) > 0: