Skip to content

Commit

Permalink
fix: Initialization syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
divy9881 committed May 28, 2020
1 parent f531bab commit 057b63a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions effect/default_effector.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ func (e *DefaultEffector) NewStream(expr string, cap int) (DefaultEffectorStream
panic("unsupported effect: " + expr)
}

des := DefaultEffectorStream{}
des.done = false
des.res = res
des.expr = expr
des.cap = cap
des.idx = 0
des.expl = make([]int, 0)
des := DefaultEffectorStream{false, res, expr, 0, cap, make([]int, 0)}

return des
}

0 comments on commit 057b63a

Please sign in to comment.