diff options
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2014-01-03 14:39:30 +0200 |
---|---|---|
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | 2014-01-03 14:39:30 +0200 |
commit | 28f3ea42a609fffc87c60bb20f633aa003205f1b (patch) | |
tree | a594dae6adb220c702500062fb2f1830917fb38f /scripts | |
parent | 56464bcedf9cd3a1ac7ea7817afb511efa15eac8 (diff) |
Simplify if/else logic.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/publish_to_snapshots.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/publish_to_snapshots.py b/scripts/publish_to_snapshots.py index 22c6851..5ea10a5 100755 --- a/scripts/publish_to_snapshots.py +++ b/scripts/publish_to_snapshots.py @@ -488,12 +488,12 @@ def main(): if ret != PASS: print "Move Failed" return FAIL - else: - if args.job_type == 'android': - rewrite_build_info( - build_dir_path, target_dir_path, tmp_bi) - print "Move succeeded" - return PASS + + if args.job_type == 'android': + rewrite_build_info( + build_dir_path, target_dir_path, tmp_bi) + print "Move succeeded" + return PASS finally: os.remove(tmp_bi) except Exception, details: |