From 131a163c6b2a0061839b8e416cda51afbb97b5e1 Mon Sep 17 00:00:00 2001 From: darkdrag00nv2 <122124396+darkdrag00nv2@users.noreply.github.com> Date: Wed, 6 Sep 2023 23:38:05 +0530 Subject: [PATCH] Remove unnecessary nesting. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bastian Müller --- runtime/stdlib/range.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/runtime/stdlib/range.go b/runtime/stdlib/range.go index 2f39ee596b..4f2f54227d 100644 --- a/runtime/stdlib/range.go +++ b/runtime/stdlib/range.go @@ -135,15 +135,15 @@ var InclusiveRangeConstructorFunction = NewStandardLibraryFunction( rangeStaticType, rangeSemaType, ) - } else { - return interpreter.NewInclusiveRangeValue( - inter, - locationRange, - start, - end, - rangeStaticType, - rangeSemaType, - ) } + + return interpreter.NewInclusiveRangeValue( + inter, + locationRange, + start, + end, + rangeStaticType, + rangeSemaType, + ) }, )