Skip to content

Commit

Permalink
ssh: fix double close
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Jan 2, 2025
1 parent 564c120 commit ab4780f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/transport/ssh/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ func (c *client) Shared(ctx context.Context, wantObjects []*transport.WantObject
return nil, cmd.lastError
}
if err := cmd.Close(); err != nil {
_ = cmd.Close()
return nil, cmd.lastError
}
return r.Objects, nil
Expand Down

0 comments on commit ab4780f

Please sign in to comment.