Преглед на файлове

fix: the return True is at the wrong scope

trgiangdo преди 1 година
родител
ревизия
f6db7b1fbd
променени са 1 файла, в които са добавени 1 реда и са изтрити 3 реда
  1. 1 3
      taipy/core/data/data_node.py

+ 1 - 3
taipy/core/data/data_node.py

@@ -510,7 +510,6 @@ class DataNode(_Entity, _Labeled):
             or the selected data is invalid.<br/>
             or the selected data is invalid.<br/>
             True otherwise.
             True otherwise.
         """
         """
-
         if self.is_valid:
         if self.is_valid:
             from ..scenario.scenario import Scenario
             from ..scenario.scenario import Scenario
             from ..taipy import get_parents
             from ..taipy import get_parents
@@ -524,10 +523,9 @@ class DataNode(_Entity, _Labeled):
                         and ancestor_node.last_edit_date > self.last_edit_date
                         and ancestor_node.last_edit_date > self.last_edit_date
                     ):
                     ):
                         return False
                         return False
-                return True
+            return True
         return False
         return False
 
 
-
     @staticmethod
     @staticmethod
     def _class_map():
     def _class_map():
         def all_subclasses(cls):
         def all_subclasses(cls):