From 4298be63e35bc88b88c687e81935320ba4dd52ff Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 29 Mar 2022 16:16:02 +0200 Subject: [PATCH] Apply suggestions from code review [skip ci] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/backends/pgfplotsx.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index b1a94a08..24fd7822 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -404,9 +404,7 @@ function pgfx_add_series!(::Val{:path}, axis, series_opt, series, series_func, o ), ) if opt[:label] == "" - push!(arrow_opt, - "forget plot" => nothing, - ) + push!(arrow_opt, "forget plot" => nothing) end if arrow.side == :head x_arrow = opt[:x][rng][(end - 1):end] @@ -431,9 +429,7 @@ function pgfx_add_series!(::Val{:path}, axis, series_opt, series, series_func, o :v => [y_arrow[i] - y_arrow[i - 1] for i in 2:2:lastindex(y_arrow)], ]) arrow_plot = series_func(merge(series_opt, arrow_opt), coordinates) - push!(series_opt, - "forget plot" => nothing, - ) + push!(series_opt, "forget plot" => nothing) push!(axis, arrow_plot) coordinates = PGFPlotsX.Table(x_path, y_path) segment_plot = series_func(merge(series_opt, segment_opt), coordinates)