aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2014-01-03 14:39:30 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2014-01-03 14:39:30 +0200
commit28f3ea42a609fffc87c60bb20f633aa003205f1b (patch)
treea594dae6adb220c702500062fb2f1830917fb38f /scripts
parent56464bcedf9cd3a1ac7ea7817afb511efa15eac8 (diff)
Simplify if/else logic.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/publish_to_snapshots.py12
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: