Skip to content

Commit

Permalink
Fix indent in sparsevector.jl
Browse files Browse the repository at this point in the history
and remove some unnecessary blank lines
[ci skip]
  • Loading branch information
tkelman authored and mfasi committed Sep 5, 2016
1 parent 917940f commit 5f4530a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions base/sparse/sparsevector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,8 @@ function findnz{Tv,Ti}(x::SparseVector{Tv,Ti})

count -= 1
if numnz != count
deleteat!(I, (count+1):numnz)
deleteat!(V, (count+1):numnz)
deleteat!(I, (count+1):numnz)
deleteat!(V, (count+1):numnz)
end

return (I, V)
Expand Down Expand Up @@ -982,7 +982,6 @@ function _binarymap{Tx,Ty}(f::Function,
x::AbstractSparseVector{Tx},
y::AbstractSparseVector{Ty},
mode::Int)

0 <= mode <= 2 || throw(ArgumentError("Incorrect mode $mode."))
R = typeof(f(zero(Tx), zero(Ty)))
n = length(x)
Expand Down Expand Up @@ -1124,7 +1123,6 @@ function _binarymap{Tx,Ty}(f::Function,
x::AbstractVector{Tx},
y::AbstractSparseVector{Ty},
mode::Int)

0 <= mode <= 2 || throw(ArgumentError("Incorrect mode $mode."))
R = typeof(f(zero(Tx), zero(Ty)))
n = length(x)
Expand Down Expand Up @@ -1167,7 +1165,6 @@ function _binarymap{Tx,Ty}(f::Function,
x::AbstractSparseVector{Tx},
y::AbstractVector{Ty},
mode::Int)

0 <= mode <= 2 || throw(ArgumentError("Incorrect mode $mode."))
R = typeof(f(zero(Tx), zero(Ty)))
n = length(x)
Expand Down

0 comments on commit 5f4530a

Please sign in to comment.