Skip to content

Commit 9a6dfcf

Browse files
giordanostaticfloat
authored andcommitted
Avoid blank line when there are no dependencies (#594)
1 parent 0238730 commit 9a6dfcf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/wizard/deploy.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ function print_build_tarballs(io::IO, state::WizardState)
3434
end
3535
end,",\n ")
3636

37-
psrepr(ps) = "PackageSpec(name=\"$(ps.name)\", uuid=\"$(ps.uuid)\")"
38-
dependencies_string = join(map(psrepr, state.dependencies), "\n ")
37+
psrepr(ps) = "\n PackageSpec(name=\"$(ps.name)\", uuid=\"$(ps.uuid)\")"
38+
dependencies_string = join(map(psrepr, state.dependencies))
3939

4040
print(io, """
4141
# Note that this script can accept some limited command-line arguments, run
@@ -65,8 +65,7 @@ function print_build_tarballs(io::IO, state::WizardState)
6565
]
6666
6767
# Dependencies that must be installed before this package can be built
68-
dependencies = [
69-
$(dependencies_string)
68+
dependencies = [$(dependencies_string)
7069
]
7170
7271
# Build the tarballs, and possibly a `build.jl` as well.

0 commit comments

Comments
 (0)