Skip to content

Commit

Permalink
Don't return anonymous function
Browse files Browse the repository at this point in the history
  • Loading branch information
kmp5VT committed Oct 3, 2023
1 parent c3cf6fb commit d3a7b24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ end
#

function fmap(bc::Broadcasted{ITensorStyle,<:Any,typeof(+),<:Tuple{Vararg{ITensor}}})
return (r, t) -> +(r, t)
return +
end

function fmap(bc::Broadcasted{ITensorStyle,<:Any,typeof(-),<:Tuple{Vararg{ITensor}}})
return (r, t) -> -(r, t)
return -
end

function Base.copyto!(
Expand Down

0 comments on commit d3a7b24

Please sign in to comment.