Skip to content

Commit 802b2cc

Browse files
committed
Remove unused fn
🤦
1 parent 57f464a commit 802b2cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/reconnectingpty/reconnectingpty.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (s *ptyState) waitForState(state State) (State, error) {
168168

169169
// waitForStateOrContext blocks until the state or a greater one is reached or
170170
// the provided context ends.
171-
func (s *ptyState) waitForStateOrContext(ctx context.Context, state State, fn func(state State) error) (State, error) {
171+
func (s *ptyState) waitForStateOrContext(ctx context.Context, state State) (State, error) {
172172
s.cond.L.Lock()
173173
defer s.cond.L.Unlock()
174174
return s.waitForStateOrContextLocked(ctx, state)

0 commit comments

Comments
 (0)