1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00

fix linter warnings.

Correct method definition for unused param ctx
This commit is contained in:
Aneesh Nireshwalia 2023-06-07 16:13:47 -06:00
parent 8a74de8b67
commit aad1cafe97

View file

@ -167,7 +167,7 @@ func (c *conn) mountShare(share string) (err error) {
}
// Get a SMB connection from the pool, or open a new one
func (b *Backend) getConnection(ctx context.Context, share string) (c *conn, err error) {
func (b *Backend) getConnection(_ context.Context, share string) (c *conn, err error) {
b.poolMu.Lock()
for len(b.pool) > 0 {
c = b.pool[0]