Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit 26f254b

Browse files
committed
Simplify string concat logic
1 parent 43ceb31 commit 26f254b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fetch-inputs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,9 @@
113113
print "cargo date: " + str(cargo_archive_date)
114114

115115
# Download cargo manifest
116-
if cargo_archive_date is None:
117-
remote_cargo_dir = SERVER_ADDRESS + "/" + CARGO_DIST_FOLDER
118-
else:
119-
remote_cargo_dir = SERVER_ADDRESS + "/" + CARGO_DIST_FOLDER + "/" + cargo_archive_date
116+
remote_cargo_dir = SERVER_ADDRESS + "/" + CARGO_DIST_FOLDER
117+
if cargo_archive_date is not None:
118+
remote_cargo_dir += "/" + cargo_archive_date
120119

121120
cargo_manifest_name = "channel-cargo-nightly"
122121
remote_cargo_manifest = remote_cargo_dir + "/" + cargo_manifest_name

0 commit comments

Comments
 (0)