Skip to content

Commit

Permalink
Automatic JuliaFormatter.jl run (#4925)
Browse files Browse the repository at this point in the history
Co-authored-by: t-bltg <13423344+t-bltg@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and t-bltg authored May 2, 2024
1 parent 9a1b641 commit 4687db1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/layouts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ function GridLayout(
heights = zeros(dims[1])
end
if widths !== nothing

if sum(widths) != 1
error("The sum of widths must be 1!")
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_layouts.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ end
background_color = :darkgray,
background_color_inside = :lightgray,
)
@test pl.layout.heights == [0.05Plots.pct, 0.95Plots.pct]
@test pl.layout.heights == [0.05Plots.pct, 0.95Plots.pct]
@test pl[:plot_title] == "My title"
@test pl[:plot_titleindex] == 5

Expand Down

0 comments on commit 4687db1

Please sign in to comment.