Skip to content

Commit a6bc93b

Browse files
committed
improve readability
1 parent 8382022 commit a6bc93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blockmap.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function Base.hcat(As::Union{LinearMap, UniformScaling, AbstractVecOrMat}...)
8585
nbc = length(As)
8686

8787
# find first non-UniformScaling to detect number of rows
88-
j = findfirst(x -> !isa(x, UniformScaling), As)
88+
j = findfirst(A -> !isa(A, UniformScaling), As)
8989
# this should not happen, function should only be called with at least one LinearMap
9090
@assert !isnothing(j)
9191
@inbounds nrows = size(As[j], 1)
@@ -123,7 +123,7 @@ function Base.vcat(As::Union{LinearMap,UniformScaling,AbstractVecOrMat}...)
123123
nbr = length(As)
124124

125125
# find first non-UniformScaling to detect number of rows
126-
j = findfirst(x -> !isa(x, UniformScaling), As)
126+
j = findfirst(A -> !isa(A, UniformScaling), As)
127127
# this should not happen, function should only be called with at least one LinearMap
128128
@assert !isnothing(j)
129129
@inbounds ncols = size(As[j], 2)

0 commit comments

Comments
 (0)