Skip to content

Commit 02b59b9

Browse files
committed
append only once
1 parent 3304230 commit 02b59b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/traces.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,8 @@ for f in (:push!, :pushfirst!, :append!, :prepend!)
149149
end
150150
end
151151
@eval function Base.$f(t::MultiplexTraces{names}, x::RelativeTrace{left, right}) where {names, left, right}
152-
if right == 0
152+
if right == 0 #do not accept appending the second name as it would be appended twice
153153
$f(t[first(names)].trace, x.trace)
154-
else
155-
$f(t[last(names)].trace, x.trace)
156154
end
157155
end
158156
end

0 commit comments

Comments
 (0)