Skip to content

Commit

Permalink
Remove unnecessary nesting.
Browse files Browse the repository at this point in the history
Co-authored-by: Bastian Müller <[email protected]>
  • Loading branch information
darkdrag00nv2 and turbolent authored Sep 6, 2023
1 parent 1d54260 commit 131a163
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions runtime/stdlib/range.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
},
)

0 comments on commit 131a163

Please sign in to comment.