Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Aug 29, 2024
1 parent 400890b commit 7f01d1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/sephirah/internal/service/tiphereth.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (s *LibrarianSephirahServiceService) ListLinkAccounts(ctx context.Context,
}, nil
}

func (s *LibrarianSephirahServiceService) ListPorters(ctx context.Context, req *pb.ListPortersRequest) (
func (s *LibrarianSephirahServiceService) ListPorters(ctx context.Context, req *pb.ListPortersRequest) ( //nolint:dupl //no need
*pb.ListPortersResponse, error,
) {
if req.GetPaging() == nil {
Expand Down Expand Up @@ -311,7 +311,7 @@ func (s *LibrarianSephirahServiceService) CreatePorterContext(
}, nil
}

func (s *LibrarianSephirahServiceService) ListPorterContexts(
func (s *LibrarianSephirahServiceService) ListPorterContexts( //nolint:dupl //no need
ctx context.Context,
req *pb.ListPorterContextsRequest,
) (*pb.ListPorterContextsResponse, error) {
Expand Down
4 changes: 2 additions & 2 deletions internal/lib/libcache/captcha.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (c *captchaStoreImpl) Set(id string, digits []byte) {
_ = c.store.Set(context.Background(), c.key(id), string(digits), WithExpiration(captcha.Expiration))
}

func (c *captchaStoreImpl) Get(id string, clear bool) []byte {
func (c *captchaStoreImpl) Get(id string, del bool) []byte {
get, err := c.store.Get(context.Background(), c.key(id))
if err != nil {
return nil
Expand All @@ -29,7 +29,7 @@ func (c *captchaStoreImpl) Get(id string, clear bool) []byte {
if !ok {
return nil
}
if clear {
if del {
_ = c.store.Delete(context.Background(), c.key(id))
}
return []byte(digits)
Expand Down

0 comments on commit 7f01d1d

Please sign in to comment.