Skip to content

Commit

Permalink
Remove wrong check
Browse files Browse the repository at this point in the history
See #39
commit_hash:79124763823633fe9f496b62db084ac4c72fcfb6
  • Loading branch information
MikailBag committed Feb 13, 2025
1 parent 54ce63f commit 61f5538
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions perforator/symbolizer/pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package client
import (
"bytes"
"context"
"errors"
"fmt"
"time"

Expand Down Expand Up @@ -75,10 +74,6 @@ func NewClient(c *Config, l xlog.Logger) (*Client, error) {
c.Insecure = !endpoint.secure
}

if !c.Insecure && c.Token == "" {
return nil, errors.New("no OAuth token found")
}

transportDialOption, err := newTransportCredentialsDialOption(!c.Insecure)
if err != nil {
return nil, fmt.Errorf("failed to initialize transport creds: %w", err)
Expand Down

0 comments on commit 61f5538

Please sign in to comment.