Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Jul 19, 2024
1 parent c6153f5 commit 85c3898
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func WithToken(ctx context.Context, token string) context.Context {
func (c *LibrarianClient) RunBackgroundRefresh() {
for {
c.muToken.RLock()
resp, err := c.RefreshToken( // nolint:typecheck // false positive
resp, err := c.RefreshToken(
WithToken(context.Background(), c.refreshToken),
new(pb.RefreshTokenRequest),
)
Expand Down
9 changes: 5 additions & 4 deletions wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ type tokenInfo struct {
func (s *wrapper) GetPorterInformation(ctx context.Context, req *pb.GetPorterInformationRequest) (
*pb.GetPorterInformationResponse, error) {
return &pb.GetPorterInformationResponse{
Name: s.Config.Name,
Version: s.Config.Version,
GlobalName: s.Config.GlobalName,
FeatureSummary: s.Config.FeatureSummary,
Name: s.Config.Name,
Version: s.Config.Version,
GlobalName: s.Config.GlobalName,
FeatureSummary: s.Config.FeatureSummary,
ContextJsonSchema: nil,
}, nil
}
func (s *wrapper) EnablePorter(ctx context.Context, req *pb.EnablePorterRequest) (
Expand Down

0 comments on commit 85c3898

Please sign in to comment.