Fix: Use return instead of break to correctly exit loop on path exist… #1312
33.33% of diff hit (target 80.00%)
View this Pull Request on Codecov
33.33% of diff hit (target 80.00%)
Annotations
Check warning on line 628 in dlrover/python/elastic_agent/torch/ckpt_saver.py
codecov / codecov/patch
dlrover/python/elastic_agent/torch/ckpt_saver.py#L628
Added line #L628 was not covered by tests
Check warning on line 662 in dlrover/python/elastic_agent/torch/ckpt_saver.py
codecov / codecov/patch
dlrover/python/elastic_agent/torch/ckpt_saver.py#L662
Added line #L662 was not covered by tests
Check warning on line 926 in dlrover/python/elastic_agent/torch/ckpt_saver.py
codecov / codecov/patch
dlrover/python/elastic_agent/torch/ckpt_saver.py#L926
Added line #L926 was not covered by tests
Check warning on line 1086 in dlrover/python/elastic_agent/torch/ckpt_saver.py
codecov / codecov/patch
dlrover/python/elastic_agent/torch/ckpt_saver.py#L1086
Added line #L1086 was not covered by tests