Skip to content

Commit

Permalink
fix off
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Jan 26, 2022
1 parent dc41ebc commit 8a185e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-vortex/py_vortex/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def when(self, binary_pat, func):
return stack(with_pat, without_pat)

def off(self, time_pat, func):
return stack(self, self.early(time_pat))
return stack(self, func(self.early(time_pat)))

def every(self, n, func):
pats = [func(self)] + ([self] * (n-1))
Expand Down

0 comments on commit 8a185e5

Please sign in to comment.