diff --git a/client/netmap.go b/client/netmap.go index 2eafcff2..a4abb0b1 100644 --- a/client/netmap.go +++ b/client/netmap.go @@ -233,11 +233,6 @@ func (x ResNetMapSnapshot) NetMap() netmap.NetMap { // Return statuses: // - global (see Client docs). func (c *Client) NetMapSnapshot(ctx context.Context, _ PrmNetMapSnapshot) (*ResNetMapSnapshot, error) { - // check context - if ctx == nil { - return nil, errorMissingContext - } - // form request body var body v2netmap.SnapshotRequestBody diff --git a/client/netmap_test.go b/client/netmap_test.go index 05482455..76920a1c 100644 --- a/client/netmap_test.go +++ b/client/netmap_test.go @@ -69,11 +69,6 @@ func TestClient_NetMapSnapshot(t *testing.T) { c := newClient(&srv) ctx := context.Background() - // missing context - //nolint:staticcheck - _, err = c.NetMapSnapshot(nil, prm) - require.ErrorIs(t, err, errorMissingContext, "") - // request signature srv.errTransport = errors.New("any error")