From 6e8f5f33c96542830cb2dbd3a54bf9c7a27bb4a9 Mon Sep 17 00:00:00 2001 From: Jutho Haegeman Date: Wed, 25 Nov 2026 09:45:42 +0100 Subject: [PATCH] Remove redundant return and bump version to 0.5.8 Co-Authored-By: Claude Opus 5.5 --- Project.toml | 2 +- src/auxiliary.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 2cd8d11..193cd71 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "StridedViews" uuid = "4db3bf67-4bd7-4b4e-b153-31dc3fb37143" authors = ["Lukas Devos ", "Jutho Haegeman "] -version = "0.5.7" +version = "0.5.8" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" diff --git a/src/auxiliary.jl b/src/auxiliary.jl index 776e3e3..bbbc481 100644 --- a/src/auxiliary.jl +++ b/src/auxiliary.jl @@ -164,7 +164,7 @@ _computereshapestrides(newsize::Tuple{}, oldsize::Dims, strides::Dims) = () _computereshapestrides(newsize::Dims, oldsize::Tuple{}, strides::Tuple{}) = newsize function _computereshapestrides(newsize::Dims, oldsize::Dims{N}, strides::Dims{N}) where {N} d, r = divrem(oldsize[1], newsize[1]) - return if r == 0 + if r == 0 s1 = strides[1] if d == 1 # not shrinking the following tuples helps type inference