From 096f3694d3829fda900dca8ac106504c5b717f14 Mon Sep 17 00:00:00 2001 From: marcoq Date: Thu, 29 Jul 2021 17:04:37 +0200 Subject: [PATCH] Update Sampling.jl Simplified return statement --- src/Sampling.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Sampling.jl b/src/Sampling.jl index ad2fc2756..e92c0f6b9 100644 --- a/src/Sampling.jl +++ b/src/Sampling.jl @@ -275,7 +275,6 @@ function sample(n,lb,ub,section_sampler::SectionSample) out_as_vec[y,xi] = new_samples[y][xi] end end - out = [Tuple(out_as_vec[y,:]) for y in 1:size(out_as_vec,1)] - return out + [Tuple(out_as_vec[y,:]) for y in 1:size(out_as_vec,1)] end end