Address code review comments.
diff --git a/compiler/front_end/dependency_checker.py b/compiler/front_end/dependency_checker.py
index fa2d719..538a679 100644
--- a/compiler/front_end/dependency_checker.py
+++ b/compiler/front_end/dependency_checker.py
@@ -224,9 +224,10 @@
 
 def _find_object_dependency_cycles(ir):
   """Finds dependency cycles in types in the ir."""
-  dependencies, errors = _find_dependencies(ir)
-  if errors:
-    return errors
+  dependencies, find_dependency_errors = _find_dependencies(ir)
+  if find_dependency_errors:
+    return find_dependency_errors
+  errors = []
   cycles = _find_cycles(dict(dependencies))
   for cycle in cycles:
     # TODO(bolms): This lists the entire strongly-connected component in a