Skip to content

Commit

Permalink
fix(try): nolint ireturn
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Aug 15, 2024
1 parent 1bbb2d8 commit bf88497
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions utils/try/try.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Package try provides a set of functions to retry a function with a delay.
//
// nolint: ireturn
package try

import (
Expand Down Expand Up @@ -111,8 +113,6 @@ func DoWithContextTimeout(
}

// DoWithResult tries a function and returns a result.
//
// nolint: ireturn
func DoWithResult[T any](
tries int,
delay time.Duration,
Expand All @@ -135,8 +135,6 @@ func DoWithResult[T any](

// DoWithContextTimeoutWithResult performs a function with context
// and returns a result.
//
// nolint: ireturn
func DoWithContextTimeoutWithResult[T any](
parent context.Context,
tries int,
Expand Down Expand Up @@ -181,8 +179,6 @@ func DoWithContextTimeoutWithResult[T any](
}

// DoExponentialBackoffWithResult performs an exponential backoff and return a result.
//
// nolint: ireturn
func DoExponentialBackoffWithResult[T any](
tries int,
delay time.Duration,
Expand Down Expand Up @@ -218,8 +214,6 @@ func DoExponentialBackoffWithResult[T any](

// DoExponentialBackoffWithContextAndResult performs an exponential backoff
// with context and returns a result
//
// nolint: ireturn
func DoExponentialBackoffWithContextAndResult[T any](
parent context.Context,
tries int,
Expand Down

0 comments on commit bf88497

Please sign in to comment.